Examples of hello()


Examples of org.apache.aries.blueprint.sample.InterfaceA.hello()

        reg2.unregister();
        assertNull(listener.getA());
        assertNull(listener.getReference());
        try {
            a.hello("world");
            fail("A ServiceUnavailableException should have been thrown");
        } catch (ServiceUnavailableException e) {
            // Ignore, expected
        }
    }
View Full Code Here

Examples of org.apache.aries.blueprint.sample.InterfaceA.hello()

        assertNotNull(listener.getA());
        assertNotNull(listener.getReference());
        assertEquals(1, refs.size());
        InterfaceA a = (InterfaceA) refs.get(0);
        assertNotNull(a);
        assertEquals("Hello world!", a.hello("world"));

    }

    @org.ops4j.pax.exam.junit.Configuration
    public static Option[] configuration() {
View Full Code Here

Examples of org.apache.avro.test.Simple.hello()

    HttpTransceiver client =
      new HttpTransceiver(new URL("http://127.0.0.1:"+s.getLocalPort()+"/"));
    client.setTimeout(100);
    Simple proxy = SpecificRequestor.getClient(Simple.class, client);
    try {
      proxy.hello("foo");
    } catch (UndeclaredThrowableException e) {
      throw e.getCause();
    } finally {
      s.close();
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.ServerMixedStyle.MixedTest.hello()

    public void testCXF885() throws Exception {
        Service serv = Service.create(new QName("http://example.com", "MixedTest"));
        MixedTest test = serv.getPort(MixedTest.class);
        ((BindingProvider)test).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                                        "http://localhost:" + PORT + "/cxf885");
        String ret = test.hello("A", "B");
        assertEquals("Hello A and B", ret);
       
        String ret2 = test.simple("Dan");
        assertEquals("Hello Dan", ret2);
       
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.components.SimpleClass.hello()

    public void testWhenNoInterface() {
        String factoryName = "org.apache.felix.ipojo.runtime.core.components.SimpleClass";
        ComponentInstance ci = ipojoHelper.createComponentInstance(factoryName);
        osgiHelper.waitForService(SimpleClass.class.getName(), null, 5000);
        SimpleClass simple = (SimpleClass) osgiHelper.getServiceObject(SimpleClass.class.getName(), null);
        assertEquals("Hello", simple.hello());
        ci.dispose();
    }

}
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.services.BazService.hello()

        ComponentInstance ci = ipojoHelper.createComponentInstance("org.apache.felix.ipojo.runtime.core.components" +
                ".nativ.NativeComponent");

        BazService baz = osgiHelper.getServiceObject(BazService.class, "(instance.name=" + ci.getInstanceName() +")");
        assertEquals("foo: Test program of JNI.", baz.hello(""));
    }


    public static Option buildBundleWithNativeLibraries() {
        File out = new File("target/tested/test-bundle-with-native.jar");
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.services.BazService.hello()

        List<BazService> services = osgiHelper.getServiceObjects(BazService.class);
        assertEquals(1, services.size());

        BazService baz = services.get(0);
        assertEquals("Hello Guillaume", baz.hello("Guillaume"));
        ipojoHelper.dispose();
    }

    @Test
    public void testMethodStereotype() {
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.test.services.HelloService.hello()

        handle.publish();
        assertTrue(ipojoHelper.isServiceAvailableByName(HelloService.class.getName(), "bonjour-service"));

        HelloService service = osgiHelper.getServiceObject(HelloService.class, format("(instance.name=%s)", "bonjour-service"));
        assertEquals(service.hello("Guillaume"), "Salut Guillaume");
    }

    @Test
    public void testVersionedTypeInstanceCreation() {
        handle = builder.newInstance("hello-service")
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.test.services.HelloService.hello()

        handle.publish();

        String filter = format("(instance.name=%s)", "hello2");
        osgiHelper.waitForService(HelloService.class, filter, 1000);
        HelloService service = osgiHelper.getServiceObject(HelloService.class, filter);
        assertEquals(service.hello("Guillaume"), "Hello2 Guillaume");
    }

    @Test
    public void testExtensionCreation() {
        handle = builder.newExtension("test", new EmptyFactoryBuilder());
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.test.services.HelloService.hello()

        System.out.println(instance.getStatus().getMessage());

        String filter = format("(instance.name=%s)", "german-hello");
        osgiHelper.waitForService(HelloService.class, filter, 1000);
        HelloService service = osgiHelper.getServiceObject(HelloService.class, filter);
        assertEquals(service.hello("Guillaume"), "Hallo Guillaume");

        instance.retract();

    }
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.