Package org.apache.felix.ipojo.test.scenarios.ps.service

Examples of org.apache.felix.ipojo.test.scenarios.ps.service.CheckService


        ComponentInstance ci = helper.createComponentInstance("PS-Controller-2-spec3");

        waitForService(CheckService.class.getName(), null, 5000);
        waitForService(FooService.class.getName(), null, 5000);

        CheckService check = (CheckService) getServiceObject(CheckService.class.getName(), null);
        assertNotNull(check);
       
        check.check();
        // CheckService not available
        assertNull(getServiceReference(CheckService.class.getName()));
        assertNotNull(getServiceReference(FooService.class.getName()));

        FooService fs = (FooService) getServiceObject(FooService.class.getName(), null);
View Full Code Here


        waitForService(CheckService.class.getName(), null, 5000);
       
        assertFalse(isServiceAvailable(FooService.class.getName()));

        CheckService check = (CheckService) getServiceObject(CheckService.class.getName(), null);
        assertNotNull(check);
       
        check.getProps();
       
        assertFalse(isServiceAvailable(CheckService.class.getName()));
        assertTrue(isServiceAvailable(FooService.class.getName()));
      
        FooService fs = (FooService) getServiceObject(FooService.class.getName(), null);
View Full Code Here

            .getHandlerDescription("org.apache.felix.ipojo:provides");
       
        ProvidedServiceDescription ps = getPS(FooService.class.getName(), pshd.getProvidedServices());
        assertEquals("true", ps.getController());
       
        CheckService check = (CheckService) getServiceObject(CheckService.class.getName(), null);
        assertNotNull(check);
       
        assertFalse(check.check());
       
        ps = getPS(FooService.class.getName(), pshd.getProvidedServices());
        assertEquals("false", ps.getController());
       
        assertTrue(check.check());
       
        ps = getPS(FooService.class.getName(), pshd.getProvidedServices());
        assertEquals("true", ps.getController());
       
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.test.scenarios.ps.service.CheckService

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.