Category category2 = createPersistedCategory(2L, "Loop");
Category category3 = createPersistedCategory(3L, "Iteration");
// Create some specific TestCases to start with that can be used for testing
// createPersistedQuestion does this as well, but with unpredictable
// TestCase id values
TestCase testCase1 = new TestCase(new BigDecimal("1.0"));
testCase1.setId(new Long(5L));
testCase1.addInput("1234");
testCase1.addInput("5678");
testCase1.addOutput("Result = 12345678");
testCase1.addExclusion("2345");
testCase1.addExclusion("9876");
testCase1.addExclusion("Result = 12345678");
TestCase testCase2 = new TestCase(new BigDecimal("2.5"));
testCase2.setId(new Long(2L));
testCase2.addInput("4");
testCase2.addInput("5");
testCase2.addOutput("Result = 999999999");
TestCase testCase3 = new TestCase(new BigDecimal("1.0"));
testCase3.setId(new Long(3L));
testCase3.addInput("123");
testCase3.addInput("1234");
testCase3.addOutput("12345");
TestCase testCase4 = new TestCase(new BigDecimal("1.0"));
testCase4.setId(new Long(4L));
testCase4.addInput("234");
testCase4.addInput("2345");
testCase4.addOutput("23456");
TestCase testCase5 = new TestCase(new BigDecimal("3.5"));
testCase5.setId(new Long(6L));
testCase5.addOutput("Hello World");
testCase5.addExclusion("Mini Me");
persistTestCase(testCase1);
persistTestCase(testCase2);
persistTestCase(testCase3);
persistTestCase(testCase4);