ScriptStepFactory { public static ScriptStep createThinkTime(String minTime, String maxTime) { ScriptStep think = new ScriptStep(); think.setType(ScriptConstants.THINK_TIME); RequestData minRD = new RequestData(); minRD.setType(ScriptConstants.THINK_TIME); minRD.setKey(ScriptConstants.MIN_TIME); minRD.setValue(minTime); RequestData maxRD = new RequestData(); maxRD.setType(ScriptConstants.THINK_TIME); maxRD.setKey(ScriptConstants.MAX_TIME); maxRD.setValue(maxTime); Set<RequestData> ds = new HashSet<RequestData>(); ds.add(minRD); ds.add(maxRD); think.setData(ds); think.setComments("ThinkTime " + minRD.getValue() + "-" + maxRD.getValue()); return think; }  static ScriptStep createVariable(String key, String value); static ScriptStep createThinkTime(String minTime, String maxTime); static ScriptStep createAuthentication(String userName, String password, String realm, AuthScheme scheme, String host, String port); static ScriptStep createSleepTime(String delay); static ScriptStep createLogic(String name, String script); static ScriptStep createCookie(String name, String value, String domain, String path); static ScriptStep createClearCookies();  }
@Test public void testCreateThinkTime_1() throws Exception { String minTime = ""; String maxTime = ""; ScriptStep result = ScriptStepFactory.createThinkTime(minTime, maxTime); assertNotNull(result); }