Package org.apache.sling.junit

Examples of org.apache.sling.junit.TestObjectProcessor


   
    @Override
    protected Object createTest() throws Exception {
        final BundleContext ctx = Activator.getBundleContext();
        final ServiceReference ref = ctx.getServiceReference(TestObjectProcessor.class.getName());
        final TestObjectProcessor top = ref == null ? null : (TestObjectProcessor)ctx.getService(ref);

        if(top == null) {
            log.info("No TestObjectProcessor service available, annotations will not be processed");
            return super.createTest();
        } else {
            log.debug("Using TestObjectProcessor {}", top);
            return top.process(super.createTest());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.junit.TestObjectProcessor

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.