RegistryServiceFactory_Test.java (a5b190bf) | RegistryServiceFactory_Test.java (de739a45) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 46 unchanged lines hidden (view full) --- 55 System.err.println(); 56 57 try { 58 XMultiServiceFactory msf = RegistryServiceFactory.create( applicat ); 59 String services[] = msf.getAvailableServiceNames(); 60 System.out.println("Available services are:"); 61 System.err.println(); 62 if (services.length == 0) | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 46 unchanged lines hidden (view full) --- 55 System.err.println(); 56 57 try { 58 XMultiServiceFactory msf = RegistryServiceFactory.create( applicat ); 59 String services[] = msf.getAvailableServiceNames(); 60 System.out.println("Available services are:"); 61 System.err.println(); 62 if (services.length == 0) |
63 System.out.println("No services avialable!"); | 63 System.out.println("No services available!"); |
64 65 else 66 for ( int i=0; i<services.length; i++ ) 67 System.out.println(services[i]); 68 69 passed = true; 70 } 71 catch (Exception e) { --- 25 unchanged lines hidden --- | 64 65 else 66 for ( int i=0; i<services.length; i++ ) 67 System.out.println(services[i]); 68 69 passed = true; 70 } 71 catch (Exception e) { --- 25 unchanged lines hidden --- |