Package uk.co.brunella.osgi.bdt.junit.runner.model

Examples of uk.co.brunella.osgi.bdt.junit.runner.model.OSGiBDTTestWrapper


  private final Map<String, Object> parameters;
  private TestClass osgiTestClass;
  private Bundle osgiTestBundle;

  public OSGiBDTJUnitRunner(Class<?> testClass) throws InitializationError {
    this(testClass, new OSGiBDTTestWrapper(testClass.getAnnotation(OSGiBDTTest.class)), null, null);
  }
View Full Code Here


  }

  private void executeTestCases(Map<String, Object> parameters) {
    OSGiBDTTest annotation = testClass.getAnnotation(OSGiBDTTest.class);

    OSGiBDTTestWrapper testArguments = null;
    try {
      if (args.length > 0) {
        loadRepository(args[0]);
        testArguments = new OSGiBDTTestWrapper(annotation, new String[] { args[0] });
      } else {
        loadRepository(annotation.repositories()[0]);
        testArguments = new OSGiBDTTestWrapper(annotation);
      }
    } catch (IOException e) {
      exception(getCell(0, 0), new RuntimeException("Repository cannot be loaded: " + e.getMessage()));
      return;
    }
View Full Code Here

    String[] arguments = new String[] {};
    String[] repositoryLocations = new String[] { repository.getLocation().toString() };
    String[] required = (String[]) requiredBundles.toArray(new String[requiredBundles.size()]);
   
    OSGiBDTTestWrapper testArguments = new OSGiBDTTestWrapper(null, null, framework, StartPolicy.ONCE_PER_TEST_CLASS,
        repositoryLocations, null, systemBundle, required, arguments);
   
    try {
      OSGiBDTJUnitRunner runner = new OSGiBDTJUnitRunner(testClass, testArguments, findBundle(testBundle), parameters);
      RunNotifier notifier = new RunNotifier();
View Full Code Here

TOP

Related Classes of uk.co.brunella.osgi.bdt.junit.runner.model.OSGiBDTTestWrapper

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.