1 package autotest.tko; 2 3 import com.google.gwt.json.client.JSONObject; 4 5 public class SingleTestSet extends TestSet { 6 private int testIndex; 7 private JSONObject initialCondition = new JSONObject(); 8 SingleTestSet(int testIndex)9 public SingleTestSet(int testIndex) { 10 this.testIndex = testIndex; 11 } 12 SingleTestSet(int testIndex, JSONObject initialCondition)13 public SingleTestSet(int testIndex, JSONObject initialCondition) { 14 this(testIndex); 15 this.initialCondition = initialCondition; 16 } 17 18 @Override getInitialCondition()19 public JSONObject getInitialCondition() { 20 return initialCondition; 21 } 22 23 @Override getPartialSqlCondition()24 public String getPartialSqlCondition() { 25 return "test_idx = " + Integer.toString(testIndex); 26 } 27 28 @Override getTestIndex()29 public int getTestIndex() { 30 return testIndex; 31 } 32 33 @Override isSingleTest()34 public boolean isSingleTest() { 35 return true; 36 } 37 38 } 39