Examples of LeakingService


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

        ComponentInstance leaking = ipojoHelper.createComponentInstance(DEFAULT_LEAKING_SERVICE);

        assertThat(hello.getState()).isEqualTo(ComponentInstance.VALID);
        assertThat(leaking.getState()).isEqualTo(ComponentInstance.VALID);

        LeakingService service = osgiHelper.waitForService(LeakingService.class,
                "(instance.name=" + leaking.getInstanceName() + ")", 1000);
        osgiHelper.waitForService(HelloService.class, "(instance.name=" + hello.getInstanceName() + ")", 1000);

        String result = service.executeListener();
        assertThat(result).isEqualToIgnoringCase("hello iPOJO");

        hello.stop();

        result = service.executeListener();
        assertThat(result).isNull();
    }
View Full Code Here

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

        ComponentInstance leaking = ipojoHelper.createComponentInstance(DEFAULT_LEAKING_SERVICE);

        assertThat(hello.getState()).isEqualTo(ComponentInstance.VALID);
        assertThat(leaking.getState()).isEqualTo(ComponentInstance.VALID);

        LeakingService service = osgiHelper.waitForService(LeakingService.class,
                "(instance.name=" + leaking.getInstanceName() + ")", 1000);
        osgiHelper.waitForService(HelloService.class, "(instance.name=" + hello.getInstanceName() + ")", 1000);

        Listener listener = service.getListener();
        String result = listener.doSomething();
        assertThat(result).isEqualToIgnoringCase("hello iPOJO");

        hello.stop();
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.