@Test
public void should_support_the_old_batch_count_property() {
environmentVariables.setProperty("thucydides.batch.count", "10");
environmentVariables.setProperty("thucydides.batch.number", "1");
SystemVariableBasedBatchManager batchManager = new SystemVariableBasedBatchManager(environmentVariables);
List<Integer> executedTests = new ArrayList<Integer>();
for(int testNumber = 1; testNumber <= 50; testNumber++) {
batchManager.registerTestCase("Test Case " + testNumber);
if (batchManager.shouldExecuteThisTest(1)) {
executedTests.add(testNumber);
}
}
assertThat(executedTests.size(), is(5));