Examples of ExampleService


Examples of com.foo.example.ExampleService

        super(Service.class);
    }

    @Test
    public void testNonInsightComponentCollected() {
        assertStereotypeOperation(new ExampleService(), true);
    }
View Full Code Here

Examples of com.foo.example.ExampleService

        assertStereotypeOperation(new InsightService(), false);
    }

    @Test
    public void testLifecycleMethodsNotCollected() throws Exception {
        assertLifecycleMethodsNotIntercepted(new ExampleService());
    }
View Full Code Here

Examples of org.fusesource.restygwt.client.basic.ExampleService

    }

    public void testMockedDispatcher() {

        /** Mock/Stub mocked example service: */
        ExampleService exampleService = new ExampleService() {
            @Override
            public void getExampleDto(MethodCallback<ExampleDto> callback) {
                ExampleDto exampleDto = new ExampleDto();
                exampleDto.name = "name";
               callback.onSuccess(null, exampleDto);
            }
            @Override
            public Request getExampleDtoCancelable(MethodCallback<ExampleDto> callback) {
                ExampleDto exampleDto = new ExampleDto();
                exampleDto.name = "name";
                callback.onSuccess(null, exampleDto);
                return null;
            }
        };

        /** test*/
        exampleService.getExampleDto(new MethodCallback<ExampleDto>() {
            @Override
            public void onSuccess(Method method, ExampleDto response) {
                assertEquals(response.name, "name");

            }
View Full Code Here

Examples of org.logicblaze.lingo.example.ExampleService

* @version $Revision: 1.2 $
*/
public class JmsMultiplexingRemotingTest extends JmsRemotingTest {

    public void testJmsProxyFactoryBeanAndAsyncServiceExporter() throws Throwable {
        ExampleService target = new ExampleServiceImpl();
        exporter = new JmsServiceExporter();
        exporter.setServiceInterface(ExampleService.class);
        exporter.setService(target);
        exporter.setProducer(createJmsProducer());
        configure(exporter);
        subscribeToQueue(exporter, getDestinationName());

        pfb = new JmsProxyFactoryBean();
        pfb.setServiceInterface(ExampleService.class);
        pfb.setServiceUrl("http://myurl");
        pfb.setRemoteInvocationFactory(new LingoRemoteInvocationFactory(new SimpleMetadataStrategy(true)));
        pfb.setRequestor(createRequestor(getDestinationName()));
        configure(pfb);
       
        ExampleService proxy = (ExampleService) pfb.getObject();

        TestResultListener listener = new TestResultListener();
        proxy.asyncRequestResponse("IBM", listener);

        listener.waitForAsyncResponses(2);

        List results = listener.getResults();
        System.out.println("Found results: " + results);
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.