VariableValueReplacement extends AbstractReplacement { @Override public List<ReplaceEntity> getReplacements(ScriptStep step, String searchQuery, String replaceString, SearchMode searchMode) { List<ReplaceEntity> reList = new ArrayList<ReplaceEntity>(); if (step.getType().equals(getType())) { for (RequestData requestData : step.getData()) { reList.addAll(getReplacementInValue(searchQuery, replaceString, requestData.getValue(), step.getType(), requestData.getKey())); } } return reList; } VariableValueReplacement(); @Override List<ReplaceEntity> getReplacements(ScriptStep step, String searchQuery, String replaceString,
            SearchMode searchMode); @Override void replace(ScriptStep step, String replaceString, String key, ReplaceMode replaceMode);  }
@Test public void testGetReplacements_1() throws Exception { VariableValueReplacement fixture = new VariableValueReplacement(); ScriptStep step = new ScriptStep(); String searchQuery = ""; String replaceString = ""; SearchMode searchMode = SearchMode.all; List<ReplaceEntity> result = fixture.getReplacements(step, searchQuery, replaceString, searchMode); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetReplacements_2() throws Exception { VariableValueReplacement fixture = new VariableValueReplacement(); ScriptStep step = new ScriptStep(); String searchQuery = ""; String replaceString = ""; SearchMode searchMode = SearchMode.all; List<ReplaceEntity> result = fixture.getReplacements(step, searchQuery, replaceString, searchMode); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetReplacements_3() throws Exception { VariableValueReplacement fixture = new VariableValueReplacement(); ScriptStep step = new ScriptStep(); String searchQuery = ""; String replaceString = ""; SearchMode searchMode = SearchMode.all; List<ReplaceEntity> result = fixture.getReplacements(step, searchQuery, replaceString, searchMode); assertNotNull(result); assertEquals(0, result.size()); }