Skip to content

Instantly share code, notes, and snippets.

@tonit
Created August 2, 2010 23:43
Show Gist options
  • Save tonit/505533 to your computer and use it in GitHub Desktop.
Save tonit/505533 to your computer and use it in GitHub Desktop.
TestContainerFactory factory = PaxExamRuntime
.getTestContainerFactory( PaxRunnerTestContainerFactory.class );
// we know there can be only one container
OptionDescription testTarget = factory.parse(
options(
waitForRBCFor( 2000 )
//location( "192.168.73.204", 8181 )
)
)[ 0 ];
TestContainer testContainer = factory.createContainer( testTarget );
try
{
TestProbeBuilder probe = createProbe().addTest( MyCode.class );
testContainer.install( probe.getStream() );
for( ProbeCall call : probe.getTests() )
{
execute( testContainer, call );
}
} finally
{
testContainer.stop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment