Package org.knowhowlab.osgi.testing.it.paxexam.service

Examples of org.knowhowlab.osgi.testing.it.paxexam.service.TestService


    @Test
    public void test_RegisterService_Async() {
        // service unregistered
        assertServiceUnavailable(TestService.class);
        // register service in 2 sec
        registerServiceAsync(getBundleContext(), TestService.class, new TestService(), null, 2, TimeUnit.SECONDS);
        // service still unregistered
        assertServiceUnavailable(TestService.class);
        // service registered
        assertServiceAvailable(TestService.class, 5, TimeUnit.SECONDS);
    }
View Full Code Here


    }

    @Test
    public void test_Service_Event() {
        // register service in 2 sec
        registerServiceAsync(getBundleContext(), TestService.class, new TestService(), null, 2, TimeUnit.SECONDS);
        // service registered within 5 sec
        assertServiceEvent(ServiceEvent.REGISTERED, TestService.class, 5, TimeUnit.SECONDS);
    }
View Full Code Here

    @Test
    public void test_RegisterService_Async() {
        // service unregistered
        assertServiceUnavailable(TestService.class);
        // register service in 2 sec
        registerServiceAsync(getBundleContext(), TestService.class, new TestService(), null, 2, TimeUnit.SECONDS);
        // service still unregistered
        assertServiceUnavailable(TestService.class);
        // service registered
        assertServiceAvailable(TestService.class, 5, TimeUnit.SECONDS);
    }
View Full Code Here

    }

    @Test
    public void test_Service_Event() {
        // register service in 2 sec
        registerServiceAsync(getBundleContext(), TestService.class, new TestService(), null, 2, TimeUnit.SECONDS);
        // service registered within 5 sec
        assertServiceEvent(ServiceEvent.REGISTERED, TestService.class, 5, TimeUnit.SECONDS);
    }
View Full Code Here

TOP

Related Classes of org.knowhowlab.osgi.testing.it.paxexam.service.TestService

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.