Examples of OSGiTestSuite


Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

import org.osgi.framework.BundleContext;

public class InstantiatorTestSuite {

  public static Test suite(BundleContext bc) {
    OSGiTestSuite ots = new OSGiTestSuite("Composite Service Instantiation Test Suite", bc);
    ots.addTestSuite(SimpleInstantiation.class);
    ots.addTestSuite(OptionalInstantiation.class);
    ots.addTestSuite(MultipleInstantiation.class);
    ots.addTestSuite(OptionalMultipleInstantiation.class);
    ots.addTestSuite(ConfigurableInstantiation.class);
    ots.addTestSuite(SimpleInstance.class);
    ots.addTestSuite(InstanceScopeTest.class);
    ots.addTestSuite(ConfigurationTest.class);
    return ots;
  }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

import org.osgi.framework.BundleContext;

public class ImportTestSuite {

  public static Test suite(BundleContext bc) {
      OSGiTestSuite ots = new OSGiTestSuite("Composite Import Test Suite", bc);
      ots.addTestSuite(SimpleImport.class);
      ots.addTestSuite(DelayedSimpleImport.class);
      ots.addTestSuite(OptionalImport.class);
      ots.addTestSuite(DelayedOptionalImport.class);
      ots.addTestSuite(MultipleImport.class);
      ots.addTestSuite(DelayedMultipleImport.class);
      ots.addTestSuite(OptionalMultipleImport.class);
      ots.addTestSuite(DelayedOptionalMultipleImport.class);
      ots.addTestSuite(FilteredImport.class);
      ots.addTestSuite(DelayedFilteredImport.class);
    return ots;
  }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

import org.osgi.framework.BundleContext;

public class ManipulationTestSuite {

  public static Test suite(BundleContext bc) {
    OSGiTestSuite ots = new OSGiTestSuite("Manipulation Test Suite for Java 5", bc);
        ots.addTestSuite(DuplicateMethod.class);
        ots.addTestSuite(Boxing.class);
        ots.addTestSuite(Annotation.class);
        ots.addTestSuite(TypedList.class);
    return ots;
  }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

import org.osgi.framework.BundleContext;

public class ConfigurationTestSuite {

    public static Test suite(BundleContext bc) {
        OSGiTestSuite ots = new OSGiTestSuite("Configuration Test Suite", bc);
        ots.addTestSuite(SimpleProperties.class);
        ots.addTestSuite(DynamicallyConfigurableProperties.class);
        ots.addTestSuite(TestFieldProperties.class);
        ots.addTestSuite(TestMethodProperties.class);
        ots.addTestSuite(TestBothProperties.class);
        ots.addTestSuite(TestSuperMethodProperties.class);
        ots.addTestSuite(ManagedServiceConfigurableProperties.class);
        ots.addTestSuite(TestComplexProperties.class);
        ots.addTestSuite(TestPropertyModifier.class);
        ots.addTestSuite(UpdatedMethod.class);
        ots.addTestSuite(UpdatedMethodAndManagedServiceFactory.class);
        ots.addTestSuite(UpdatedMethodAndManagedService.class);
        ots.addTestSuite(UpdatedNoArgMethodAndManagedService.class);
        ots.addTestSuite(UpdatedNoArgMethodAndManagedServiceFactory.class);
        ots.addTestSuite(ArchitectureTest.class);
        return ots;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

     */
    public static Test suite(BundleContext bc) {
        TestSuite ts = new TestSuite();
        ts.setName("Test OSGi suite() method");
        ts.addTestSuite(TestTestCase.class);
        OSGiTestSuite ots = new OSGiTestSuite(TestOSGiTestCase.class, bc);
        ots.setBundleContext(bc);
        ts.addTest(ots);
        return ts;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

                suiteMethod = clazz.getMethod(SUITE_METHODNAME, new Class[] { BundleContext.class });
                bc = true;
            } catch (Exception e2) {
                // try to extract a test suite automatically
                if (OSGiTestSuite.class.isAssignableFrom(clazz)) {
                    OSGiTestSuite ts = new OSGiTestSuite(clazz, getBundleContext(bundle));
                    return ts;
                } else if (OSGiTestCase.class.isAssignableFrom(clazz)) {
                    OSGiTestSuite ts = new OSGiTestSuite(clazz, getBundleContext(bundle));
                    return ts;
                } else {
                    return new TestSuite(clazz);
                }
            }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

import org.osgi.framework.BundleContext;

public class FactoryTestSuite {

    public static Test suite(BundleContext bc) {
        OSGiTestSuite ots = new OSGiTestSuite("Factories Test Suite", bc);
        ots.addTestSuite(ComponentDesc.class);
        ots.addTestSuite(UnacceptableConfigurationTest.class);
        ots.addTestSuite(ConfigAdminTest.class);
        ots.addTestSuite(ObedienceTest.class);
        ots.addTestSuite(FactoryProps.class);
        ots.addTestSuite(ReconfigurationTest.class);
        return ots;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

import org.osgi.framework.BundleContext;

public class ManipulationTestSuite {

  public static Test suite(BundleContext bc) {
    OSGiTestSuite ots = new OSGiTestSuite("Manipulation Metadata Test Suite", bc);
    ots.addTestSuite(ManipulationMetadata.class);
        ots.addTestSuite(ManipulationMetadataAPI.class);
    return ots;
  }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

public class LifeCycleControllerTestSuite {


    public static Test suite(BundleContext bc) {
        OSGiTestSuite ots = new OSGiTestSuite("Lifecycle Controller Test Suite", bc);
        ots.addTestSuite( LifeCycleControllerTest.class);
        ots.addTestSuite( ImmediateLifeCycleControllerTest.class);
        ots.addTestSuite(ConfigurableLifeCycleControllerTest.class);
        return ots;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.junit4osgi.OSGiTestSuite

     * @param bc
     *            the OSGi bundle context
     * @return the Event Admin Handler test suite.
     */
    public static Test suite(BundleContext bc) {
        OSGiTestSuite ots = new OSGiTestSuite("JMX Handler test suite",
                bc);
        ots.addTestSuite(MBeanTests.class);
        return ots;
    }
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.