Examples of hello()


Examples of org.apache.felix.ipojo.test.scenarios.component.SimpleClass.hello()

    IPOJOHelper helper = new IPOJOHelper(this);
    String factoryName = "org.apache.felix.ipojo.test.scenarios.component.SimpleClass";
    ComponentInstance ci = helper.createComponentInstance(factoryName);
    waitForService(SimpleClass.class.getName(), null, 5000);
    SimpleClass simple = (SimpleClass) getServiceObject(SimpleClass.class.getName(), null);
    assertEquals("Hello", simple.hello());
    ci.dispose();
  }

}
View Full Code Here

Examples of org.apache.tuscany.container.java.assembly.mock.HelloWorldService.hello()

        child.registerModelObject(MockFactory.createModuleWithEntryPointToExternalService());
        child.publish(new ModuleStart(this));
        Object id = new Object();
        child.publish(new RequestStart(this, id));
        HelloWorldService service1 = (HelloWorldService) child.getContext("target").getInstance(null);
        Assert.assertEquals("foo", service1.hello("foo"));

        child.publish(new RequestEnd(this, id));
        child.publish(new ModuleStop(this));
        runtime.stop();
View Full Code Here

Examples of org.apache.tuscany.container.java.assembly.mock.HelloWorldService.hello()

        child.registerModelObject(MockFactory.createModuleWithExternalService());
        child.publish(new ModuleStart(this));
        HelloWorldService source = (HelloWorldService) child.getContext("source").getInstance(null);
        Assert.assertNotNull(source);
        Assert.assertEquals(0, mockInterceptor.getCount());
        Assert.assertEquals("foo", source.hello("foo"));
        Assert.assertEquals(1, mockInterceptor.getCount());
        child.publish(new ModuleStop(this));
        runtime.stop();
    }
View Full Code Here

Examples of org.apache.tuscany.core.wire.mock.SimpleTarget.hello()

        JDKSourceWireFactory factory = new JDKSourceWireFactory();
        factory.setConfiguration(config);
        factory.setBusinessInterface(SimpleTarget.class);
        factory.initialize();
        SimpleTarget instance = (SimpleTarget) factory.createProxy();
        Assert.assertEquals("foo",instance.hello("foo"));
    }

     public void testTargetWireFactory() throws Exception {
        TargetInvocationConfiguration source = new TargetInvocationConfiguration(hello);
        MockSyncInterceptor sourceInterceptor = new MockSyncInterceptor();
View Full Code Here

Examples of org.apache.tuscany.core.wire.mock.SimpleTarget.hello()

        JDKTargetWireFactory factory = new JDKTargetWireFactory();
        factory.setConfiguration(config);
        factory.setBusinessInterface(SimpleTarget.class);
        factory.initialize();
        SimpleTarget instance = (SimpleTarget) factory.createProxy();
        Assert.assertEquals("foo",instance.hello("foo"));
    }
}
View Full Code Here

Examples of org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType.hello()

        new Socket("127.0.0.1", 8085);
    }
   
    public void testServiceInvocation() throws Exception {
        HelloPortType bpelService = node.getService(HelloPortType.class, "BPELHelloWorldServiceComponent");
        String response = bpelService.hello("Hello");
        Assert.assertEquals("Hello World", response);
    }
}
View Full Code Here

Examples of org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType.hello()

    }
   
    @Test
    public void testServiceInvocation() throws Exception {
        HelloPortType bpelService = node.getService(HelloPortType.class, "BPELHelloWorldService");
        String response = bpelService.hello("Hello");
        Assert.assertEquals("Hello World", response);
    }
   
    @Test
    public void testReferenceInvocation() throws Exception {
View Full Code Here

Examples of org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType.hello()

        scaDomain.close();
    }
   
    public void testServiceInvocation() throws Exception {
        HelloPortType bpelService = scaDomain.getService(HelloPortType.class, "BPELHelloWorldService");
        String response = bpelService.hello("Hello");
        assertEquals("Hello World", response);
    }
   
    public void testReferenceInvocation() throws Exception {
        HelloWorld bpelService = scaDomain.getService(HelloWorld.class, "BPELHelloWorld");
View Full Code Here

Examples of org.apache.webbeans.newtests.injection.circular.beans.CircularApplicationScopedBean.hello()

        Object reference = getBeanManager().getReference(dependentBean, CircularApplicationScopedBean.class, ctx);
       
        Assert.assertTrue(reference instanceof CircularApplicationScopedBean);
       
        CircularApplicationScopedBean beanInstance = (CircularApplicationScopedBean)reference;
        beanInstance.hello();
       
        Assert.assertTrue(CircularDependentScopedBean.success);
        Assert.assertTrue(CircularApplicationScopedBean.success);
       
        shutDownContainer();
View Full Code Here

Examples of org.apache.webbeans.test.component.intercept.InterceptedComponent.hello()

        Object object = getManager().getInstance(comps.get(0));

        Assert.assertTrue(object instanceof InterceptedComponent);

        InterceptedComponent comp = (InterceptedComponent) object;
        Object s = comp.hello(null);

        Assert.assertEquals(new Integer(5), s);

        ContextFactory.destroyRequestContext(null);
    }
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.