Examples of TestService


Examples of org.apache.cxf.dosgi.dsw.hooks.TestService

        assertNotNull(serviceProps.get(DistributionProvider.PRODUCT_VERSION));
        assertNotNull(serviceProps.get(DistributionProvider.VENDOR_NAME));
    }
   
    public void testPublishPreexistingServices() throws Exception {
        TestService serviceObject = new TestServiceImpl();

        IMocksControl control = EasyMock.createNiceControl();
       
        Bundle b = control.createMock(Bundle.class);
        Hashtable<String, String> ht = new Hashtable<String, String>();
View Full Code Here

Examples of org.apache.cxf.systest.jaxb.service.TestService

    }

    @Test
    public void testExtraSubClassWithJaxb() throws Throwable {
        Widget expected = new ExtendedWidget(42, "blah", "blah", true, true);
        TestService testClient = getTestClient();
        Widget widgetFromService = testClient.getWidgetById((long)42);

        Assert.assertEquals(expected, widgetFromService);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxb.service.TestService

    @Test
    public void testExtraSubClassWithJaxbFromEndpoint() throws Throwable {
        Widget expected = new ExtendedWidget(42, "blah", "blah", true, true);
           
        TestService testClient = getTestClient();
        ((BindingProvider)testClient).getRequestContext()
            .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                 "http://localhost:7081/service/TestEndpoint");
        Widget widgetFromService = testClient.getWidgetById((long)42);

        Assert.assertEquals(expected, widgetFromService);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxb.service.TestService

    }

    @Test
    public void testExtraSubClassWithJaxb() throws Throwable {
        Widget expected = new ExtendedWidget(42, "blah", "blah", true, true);
        TestService testClient = getTestClient();
        Widget widgetFromService = testClient.getWidgetById((long)42);

        Assert.assertEquals(expected, widgetFromService);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxb.service.TestService

    @Test
    public void testExtraSubClassWithJaxbFromEndpoint() throws Throwable {
        Widget expected = new ExtendedWidget(42, "blah", "blah", true, true);
           
        TestService testClient = getTestClient();
        ((BindingProvider)testClient).getRequestContext()
            .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                 "http://localhost:" + PORT + "/service/TestEndpoint");
        Widget widgetFromService = testClient.getWidgetById((long)42);

        Assert.assertEquals(expected, widgetFromService);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxb.service.TestService

    }

    @Test
    public void testExtraSubClassWithJaxb() throws Throwable {
        Widget expected = new ExtendedWidget(42, "blah", "blah", true, true);
        TestService testClient = getTestClient();
        Widget widgetFromService = testClient.getWidgetById(42);

        Assert.assertEquals(expected, widgetFromService);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxb.service.TestService

    @Test
    public void testExtraSubClassWithJaxbFromEndpoint() throws Throwable {
        Widget expected = new ExtendedWidget(42, "blah", "blah", true, true);
           
        TestService testClient = getTestClient();
        ((BindingProvider)testClient).getRequestContext()
            .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                 "http://localhost:" + PORT + "/service/TestEndpoint");
        Widget widgetFromService = testClient.getWidgetById(42);

        Assert.assertEquals(expected, widgetFromService);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

    }

    public void testInvoke() throws Exception {
        ServiceReference<TestService> serviceReference = domain.getServiceReference(TestService.class, "TestServiceComponent");
        assertNotNull(serviceReference);
        TestService service = serviceReference.getService();
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

    }

    public void testInvoke() throws Exception {
        ServiceReference<TestService> serviceReference = domain.getServiceReference(TestService.class, "TestServiceComponent");
        assertNotNull(serviceReference);
        TestService service = serviceReference.getService();
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

       
        // At this point the domain contains my contribution, my composite and
        // it's started, my application code can start using it
       
        // Get the TestServiceComponent service
        TestService service = domain.getService(TestService.class, "TestServiceComponent");
       
        // Invoke the service
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
       
        // Stop my composite
        domain.getCompositeActivator().stop(myComposite);
        domain.getCompositeActivator().deactivate(myComposite);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.