Package org.apache.felix.ipojo.test.scenarios.component

Examples of org.apache.felix.ipojo.test.scenarios.component.FooProviderType1.testException()


    public void testException() {
        ServiceReference ref = helper.getServiceReferenceByName(FooService.class.getName(), ci_lazzy.getInstanceName());
        assertNotNull("Check that a FooService from " + ci_lazzy.getInstanceName() + " is available",ref);
        FooProviderType1 fs = (FooProviderType1) getServiceObject(ref);
        try {
            fs.testException();
            fail("The method must returns an exception");
        } catch(Exception e) {
            // OK
        }
    }
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.