Package org.apache.felix.ipojo.runtime.core.test.services

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


        // can safely test the declaration binding
        assertFalse(handle.getStatus().isBound());
        handle.publish();

        // This test has been already ssen as failed.
        HelloService hs = osgiHelper.waitForService(HelloService.class, "(factory.name=org.apache.felix.ipojo.runtime" +
                ".core.test.components.FrenchHelloService)", 1000);
        assertNotNull(hs);
        System.out.println("Status: " + handle.getStatus().isBound());

        assertTrue(handle.getStatus().isBound());
View Full Code Here


                .build();

        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");
    }
View Full Code Here

        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");
    }
View Full Code Here

        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

Related Classes of org.apache.felix.ipojo.runtime.core.test.services.HelloService

Copyright © 2018 www.massapicom. 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.