Examples of greet()


Examples of core.GreetingService.greet()

public class SpringXmlDemo {

  public static void main(String[] args) {
    ApplicationContext context = new ClassPathXmlApplicationContext("demo/xml/beans.xml");
    GreetingService service = context.getBean(GreetingService.class);
    service.greet("World");
  }

}
View Full Code Here

Examples of core.GreetingService.greet()

public class SpringAnnotationDemo {

  public static void main(String[] args) {
    ApplicationContext context = new AnnotationConfigApplicationContext(Beans.class);
    GreetingService service = context.getBean(GreetingService.class);
    service.greet("World");
  }

}
View Full Code Here

Examples of core.GreetingService.greet()

public class ComponentScanDemo {

  public static void main(String[] args) {
    ApplicationContext context = new ClassPathXmlApplicationContext("config.xml", ComponentScanDemo.class);
    GreetingService service = context.getBean(GreetingService.class);
    service.greet("World");
  }
}
View Full Code Here

Examples of core.SimpleGreetingService.greet()

public class SimpleDemo {

  public static void main(String[] args) {
    GreetingGenerator generator = new DefaultGreetingGenerator();
    SimpleGreetingService service = new SimpleGreetingService(generator);
    service.greet("World");
  }

}
View Full Code Here

Examples of org.apache.tuscany.container.groovy.mock.Greeting.greet()

        ObjectFactory<?> factory = createMock(ObjectFactory.class);
        expect((String) factory.getInstance()).andReturn("bar");
        replay(factory);
        component.addPropertyFactory("property", factory);
        Greeting greeting = (Greeting) component.getServiceInstance();
        assertEquals("bar", greeting.greet("foo"));
    }

    @SuppressWarnings("unchecked")
    protected void setUp() throws Exception {
        super.setUp();
View Full Code Here

Examples of org.apache.tuscany.container.groovy.mock.Greeting.greet()

        for (OutboundInvocationChain chain : wire.getInvocationChains().values()) {
            chain.setTargetInvoker(invoker);
        }
        component.addOutboundWire(wire);
        Greeting greeting = (Greeting) component.getServiceInstance();
        assertEquals("foo", greeting.greet("foo"));
        verify(invoker);
    }

    // todo this could be generalized and moved to test module
    public static Message eqMessage() {
View Full Code Here

Examples of org.apache.tuscany.container.groovy.mock.Greeting.greet()

        for (InboundInvocationChain chain : wire.getInvocationChains().values()) {
            chain.setTargetInvoker(component.createTargetInvoker(null, chain.getOperation()));
        }
        component.addInboundWire(wire);
        Greeting greeting = (Greeting) component.getServiceInstance("Greeting");
        assertEquals("foo", greeting.greet("foo"));
    }

    protected void setUp() throws Exception {
        super.setUp();
        GroovyClassLoader cl = new GroovyClassLoader(getClass().getClassLoader());
View Full Code Here

Examples of org.apache.tuscany.container.javascript.mock.Greeting.greet()

        for (InboundInvocationChain chain : wire.getInvocationChains().values()) {
            chain.setTargetInvoker(context.createTargetInvoker(null, chain.getOperation()));
        }
        context.addInboundWire(wire);
        Greeting greeting = (Greeting) context.getServiceInstance("Greeting");
        assertEquals("foo", greeting.greet("foo"));
        scope.stop();
    }

    protected void setUp() throws Exception {
        super.setUp();
View Full Code Here

Examples of org.apache.tuscany.container.ruby.mock.Greeting.greet()

                                                               chain.getOperation()));
        }
        context.addInboundWire(wire);
        Greeting greeting = (Greeting) context.getServiceInstance("Greeting");
        assertEquals("foo",
                     greeting.greet("foo"));
        scope.stop();
    }

    protected void setUp() throws Exception {
        super.setUp();
View Full Code Here

Examples of org.slim3.util.cool.service.GreetService.greet()

     */
    @Test
    public void create() throws Exception {
        GreetService service = CoolBridge.create(GreetService.class);
        assertThat(service, is(notNullValue()));
        assertThat(service.greet(), is("Hello"));
    }

    /**
     * @throws Exception
     */
 
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.