net.thucydides.core.batches
Class SystemVariableBasedBatchManager

Package class diagram package SystemVariableBasedBatchManager
java.lang.Object
  extended by net.thucydides.core.batches.SystemVariableBasedBatchManager
All Implemented Interfaces:
BatchManager

public class SystemVariableBasedBatchManager
extends Object
implements BatchManager

Manages running test cases (i.e. test classes) in batches.


Constructor Summary
SystemVariableBasedBatchManager(EnvironmentVariables environmentVariables)
          The batch manager is initiated using system properties.
 
Method Summary
 int getCurrentTestCaseNumber()
           
 void registerTestCase(Class<?> klass)
           
 void registerTestCase(String testCaseName)
           
 boolean shouldExecuteThisTest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemVariableBasedBatchManager

@Inject
public SystemVariableBasedBatchManager(EnvironmentVariables environmentVariables)
The batch manager is initiated using system properties. These properties are "thucydides.batch.count" and "thucydides.batch.number".

Method Detail

getCurrentTestCaseNumber

public int getCurrentTestCaseNumber()
Specified by:
getCurrentTestCaseNumber in interface BatchManager

registerTestCase

public void registerTestCase(Class<?> klass)
Specified by:
registerTestCase in interface BatchManager

registerTestCase

public void registerTestCase(String testCaseName)
Specified by:
registerTestCase in interface BatchManager

shouldExecuteThisTest

public boolean shouldExecuteThisTest()
Specified by:
shouldExecuteThisTest in interface BatchManager


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.