Skip to content

Instantly share code, notes, and snippets.

@tonit
Created August 28, 2010 16:17
Show Gist options
  • Save tonit/555304 to your computer and use it in GitHub Desktop.
Save tonit/555304 to your computer and use it in GitHub Desktop.
TestContainerFactory factory = getFactory();
Option[] options = new Option[]{junitBundles(), easyMockBundles()};
for (OptionDescription testTarget : factory.parse(options)) {
TestContainer testContainer = factory.createContainer(testTarget);
try {
testContainer.start();
TestProbeBuilder probe = createProbe().addTest(Probe.class);
testContainer.install(probe.getStream());
for (TestAddress test : probe.getTests()) {
execute(testContainer, test);
}
} finally {
testContainer.stop();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment