Skip to content

Instantly share code, notes, and snippets.

@bussiere
Created December 29, 2010 12:17
Show Gist options
  • Save bussiere/758478 to your computer and use it in GitHub Desktop.
Save bussiere/758478 to your computer and use it in GitHub Desktop.
random java junit fail
package Test;
import java.util.Random;
import junit.framework.TestCase;
public class JunitFailTest extends TestCase
{
public void test()
{
Random r = new Random();
int i = r.nextInt(2);
System.out.println(i);
if (i == 0)
{
fail("\n66666666666666666666666666622244222666666666666666666666666666666666666666666666666666\n"
+ "66666666666666666666666625555555555 4666666666666666666666666666666666666666666666666\n"
+ "666666666666666666666665 555 555 5555 26666666666666666666666224422266666666666666666\n"
+ "66666666666666666666665 55 52222224 555 222444444444222666645 5555555 5266666666666666\n"
+ "6666666666666666666662 555 22222445 5555555555555555555555 555 555555 26666666666666\n"
+ "6666666666666666666662 555 2245 55555555555555544444444444455 42222225556666666666666\n"
+ "6666666666666666666666 55 5 5555555555555554444444444444444445 5222225556666666666666\n"
+ "666666666666666666666665 5555555555555555544444444444444444444445 52455 66666666666666\n"
+ "666666666666666666666666 55555555555555544444444444444444444444445 555666666666666666\n"
+ "66666666666666666666666 55555555555555554444444444444444444444444445 26666666666666666\n"
+ "6666666666666666666666 5555555555555 544444444444444444444444444 46666666666666666\n"
+ "6666666666666666666665 555555555555 44444444444444445555554445 2666666666666666\n"
+ "666666666666666666662 5555555555555 4444444444444445 44454666666666666666\n"
+ "666666666666666666665 555555555555555 54444444444444444 44455666666666666666\n"
+ "66666666666666666666 55555555555555555544444444444444444445 54445 666666666666666\n"
+ "66666666666666666664 5555555555555555555552222222444222444444555444444 666666666666666\n"
+ "6666666666666666662 555555555555555555 422222225 52222555444444444 266666666666666\n"
+ "666666666666666662 555555555555555555 4222222225 5222222 544444444 266666666666666\n"
+ "66666666666666665 5555555555555555555 5222222222455422222222 5444444445566666666666666\n"
+ "666666666666662555555555555555555555555 5555555444455442224 54444444444 26666666666666\n"
+ "66666666666664 545 5555555555555555555555 54 2666666625 5554444444444445 2666666666666\n"
+ "66666666666666662 55555555555555555555555 54 2666666245 4444444455444 555 526666666666\n"
+ "6666666666666666 5 55 555 5555555555555545 26666255 544445545 545 6666666666666666\n"
+ "666666666666666622 5 5 55555555555 5445555555 5444445 55 5 4666666666666666\n"
+ "66666666666666665 55555555555555555555554445 5555555 54444445 555555445546666666666666\n"
+ "666666666666662 555555555555555555555444444445555555444444444555555444445 466666666666\n"
+ "66666666666662 5555555555555555555544444444444444444444444444 555555444444556666666666\n");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment