Skip to content

Instantly share code, notes, and snippets.

@anpieber
Created September 2, 2011 14:07
Show Gist options
  • Select an option

  • Save anpieber/1188676 to your computer and use it in GitHub Desktop.

Select an option

Save anpieber/1188676 to your computer and use it in GitHub Desktop.
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.Configuration;
import org.ops4j.pax.exam.junit.ExamReactorStrategy;
import org.ops4j.pax.exam.junit.JUnit4TestRunner;
import org.ops4j.pax.exam.options.CustomFrameworkOption;
import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;
@RunWith(JUnit4TestRunner.class)
@ExamReactorStrategy(AllConfinedStagedReactorFactory.class)
public class ExamTest {
@Configuration
public Option[] config() {
return new Option[]{ new CustomFrameworkOption("mvn:org.apache.karaf/apache-karaf/2.2.3/zip", "karaf",
"karaf-2.2.3") };
}
@Test
public void test() throws Exception {
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
System.out.println("===========================================");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment