Package org.springframework.osgi.test.internal.holder

Examples of org.springframework.osgi.test.internal.holder.OsgiTestInfoHolder


   * Loads the test instance inside OSGi and prepares it for execution.
   *
   * @return
   */
  private OsgiJUnitTest loadTest() {
    OsgiTestInfoHolder holder = HolderLoader.INSTANCE.getHolder();
    String testClass = holder.getTestClassName();
    if (testClass == null)
      throw new IllegalArgumentException("no test class specified");

    try {
      // use bundle to load the classes
View Full Code Here


   * @throws Exception
   */
  protected void executeTest(OsgiJUnitTest test) throws Exception {
    // create holder
    // since we're inside OSGi, we have to use the special loading procedure
    OsgiTestInfoHolder holder = HolderLoader.INSTANCE.getHolder();

    // read the test to be executed
    String testName = holder.getTestMethodName();
    if (log.isDebugEnabled())
      log.debug("Reading test [" + testName + "] for execution inside OSGi");
    // execute the test
    TestResult result = runTest(test, testName);

View Full Code Here

TOP

Related Classes of org.springframework.osgi.test.internal.holder.OsgiTestInfoHolder

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.