示例#1
0
  /**
   * Run the AllReplacement() constructor test.
   *
   * @throws Exception
   * @generatedBy CodePro at 12/16/14 6:32 PM
   */
  @Test
  public void testAllReplacement_1() throws Exception {

    AllReplacement result = new AllReplacement();

    assertNotNull(result);
    assertEquals("AGGREGATE", result.getType());
    assertEquals(null, result.getSection());
  }
示例#2
0
  /**
   * Run the void replace(ScriptStep,String,String,ReplaceMode) method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 12/16/14 6:32 PM
   */
  @Test
  public void testReplace_1() throws Exception {
    AllReplacement fixture = new AllReplacement();
    ScriptStep step = new ScriptStep();
    String replaceString = "";
    String key = "";
    ReplaceMode replaceMode = ReplaceMode.KEY;

    fixture.replace(step, replaceString, key, replaceMode);
  }
示例#3
0
  /**
   * Run the List<ReplaceEntity> getReplacements(ScriptStep,String,String,SearchMode) method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 12/16/14 6:32 PM
   */
  @Test
  public void testGetReplacements_3() throws Exception {
    AllReplacement fixture = new AllReplacement();
    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());
  }