Package org.apache.juddi.v3.client.config

Examples of org.apache.juddi.v3.client.config.UDDIClient


        }

        @BeforeClass
        public static void startManager() throws ConfigurationException {
                logger.info("UDDI_142_DigitalSignatureIntegrationTests");
                manager = new UDDIClient();
                manager.start();

                logger.debug("Getting auth tokens..");
                try {
                        Transport transport = manager.getTransport();
View Full Code Here


public class UDDIClientTest {

        @Test
        public void testReadingTheConfig() {
                try {
                        UDDIClient client = new UDDIClient();
                        client.start();
                        client.getClientConfig().getUDDINode("default");
                        assertEquals(2, client.getClientConfig().getUDDIClerks().size());
                        Thread.sleep(500);
                        client.stop();
                } catch (Exception e) {
                        //we should not have any issues reading the config
                        e.printStackTrace();
                        Assert.fail();
                }
View Full Code Here

        }

        @Test
        public void testMultipleClientConfigFiles() {
                try {
                        UDDIClient client = new UDDIClient("META-INF/uddi.xml");
                        client.start();
                        assertEquals("test-client", client.getName());

                        UDDIClient client2 = new UDDIClient("META-INF/uddi2.xml");
                        client2.start();
                        assertEquals("second-client", client2.getName());
                        Thread.sleep(500);
                        client.stop();
                        client2.stop();

                } catch (Exception e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                        Assert.fail("No exceptions are expected");
View Full Code Here

        }

        @Test
        public void testDefaultConfigFile() {
                try {
                        UDDIClient client = new UDDIClient(null);
                        //We're expecting the client defined in the META-INF/uddi.xml file.
                        client.start();
                        assertEquals("test-client", client.getName());
                        Thread.sleep(500);
                        client.stop();

                } catch (Exception e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                        Assert.fail("No exceptions are expected");
View Full Code Here

        public void testDefaultManager() {
                try {
                        //This is a special case where the client in the META-INF/uddi.xml file is
                        //instantiated and started simply by getting it.
                        //This functionality was add for backwards compatibility.
                        UDDIClient client = new UDDIClient();
                        client.start();
                        assertEquals("test-client", client.getName());
                        assertEquals("default", client.getClientConfig().getHomeNode().getName());
                        Thread.sleep(500);
                        client.stop();

                } catch (Exception e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                        Assert.fail("No exceptions are expected");
View Full Code Here

        }

        @Test
        public void testReadingAnnotations() {
                try {
                        UDDIClient client = new UDDIClient();
                        Map<String, UDDIClerk> clerks = client.getClientConfig().getUDDIClerks();
                        AnnotationProcessor ap = new AnnotationProcessor();
                        if (clerks.containsKey("default")) {
                                UDDIClerk clerk = clerks.get("default");
                                BusinessService service = ap.readServiceAnnotations(
                                        HelloWorldMockup.class.getName(), clerk.getUDDINode().getProperties());
View Full Code Here

        public void testDefaultManagerGetTransport() {
                try {
                        //This is a special case where the client in the META-INF/uddi.xml file is
                        //instantiated and started simply by getting it.
                        //This functionality was add for backwards compatibility.
                        UDDIClient client = new UDDIClient();
                        client.start();
                        assertEquals("test-client", client.getName());
                        assertEquals("default", client.getClientConfig().getHomeNode().getName());
                        Transport transport = client.getTransport("default");
                        Assert.assertNotNull(transport);
                        Assert.assertNotNull(transport.getJUDDIApiService());
                        Assert.assertNotNull(transport.getUDDICustodyTransferService());
                        Assert.assertNotNull(transport.getUDDIInquiryService());
                        Assert.assertNotNull(transport.getUDDIPublishService());
                        Assert.assertNotNull(transport.getUDDISecurityService());
                        Assert.assertNotNull(transport.getUDDISubscriptionListenerService());
                        Assert.assertNotNull(transport.getUDDISubscriptionService());

                        Thread.sleep(500);
                        client.stop();

                } catch (Exception e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                        Assert.fail("No exceptions are expected");
View Full Code Here

         *
         * @throws Exception
         */
        @Test
        public void getVersion2Clients() throws Exception {
                UDDIClient client = new UDDIClient("META-INF/uddiv2.xml");
                client.start();
                Transport transport = client.getTransport("default");
                Assert.assertNotNull(transport);
                Assert.assertEquals(transport.getClass().getCanonicalName(), JAXWSv2TranslationTransport.class.getCanonicalName());
                Assert.assertNotNull(transport.getUDDIInquiryService());
                Assert.assertNotNull(transport.getUDDIPublishService());
                Thread.sleep(500);
                client.stop();

        }
View Full Code Here

                manager.stop();
        }

        @BeforeClass
        public static void startManager() throws ConfigurationException {
                manager = new UDDIClient();
                manager.start();

                logger.debug("Getting auth tokens..");
                try {
                        Transport transport = manager.getTransport();
View Full Code Here

        private static UDDIClient manager;

        @BeforeClass
        public static void startManager() throws ConfigurationException {
                logger.info("BPEL_010_IntegrationTest");
                manager = new UDDIClient();
                manager.start();
                logger.debug("Getting auth token for user riftsaw/riftsaw..");
                try {
                        Transport transport = manager.getTransport();
View Full Code Here

TOP

Related Classes of org.apache.juddi.v3.client.config.UDDIClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.