Skip to content

Instantly share code, notes, and snippets.

@burtonator
Created May 29, 2013 22:31
Show Gist options
  • Save burtonator/5674363 to your computer and use it in GitHub Desktop.
Save burtonator/5674363 to your computer and use it in GitHub Desktop.
powerset testing...
public void test1() throws Exception {
List<Long> delayOptions = Longs.asList( 0, 1000 );
List<Boolean> chunkOptions = Booleans.asList( true, false );
for( long delay : delayOptions ) {
for ( boolean chunked : chunkOptions ) {
log.info( "Testing with options: delay=%s, chunked=%s", delay, chunked );
new Tester()
.setChunked(chunked)
.setDelay( delay )
.doTest();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment