Package org.apache.aries.blueprint.sample

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


        waitForAsynchronousHandling();

        assertNotNull(listener.getA());
        assertNotNull(listener.getReference());
        assertEquals("Hello world!", a.hello("world"));

        reg1.unregister();
        waitForAsynchronousHandling();
        assertNotNull(listener.getA());
        assertNotNull(listener.getReference());
View Full Code Here


        reg1.unregister();
        waitForAsynchronousHandling();
        assertNotNull(listener.getA());
        assertNotNull(listener.getReference());
        assertEquals("Good morning world!", a.hello("world"));

        reg2.unregister();
        waitForAsynchronousHandling();

        assertNull(listener.getA());
View Full Code Here

        waitForAsynchronousHandling();

        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

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

    }
   
    @Test
    public void testDefaultReference() 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.