ScriptStepFactory { public static ScriptStep createLogic(String name, String script) { ScriptStep ret = new ScriptStep(); ret.setType(ScriptConstants.LOGIC); ret.setComments("Logic Step: " + name); ret.setName(name); RequestData data = new RequestData(); data.setType(ScriptConstants.LOGIC); data.setKey(ScriptConstants.SCRIPT); data.setValue(script); Set<RequestData> ds = new HashSet<RequestData>(); ds.add(data); ret.setData(ds); return ret; }  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 testCreateLogic_1() throws Exception { String name = ""; String script = ""; ScriptStep result = ScriptStepFactory.createLogic(name, script); assertNotNull(result); }