Skip to content

Commit

Permalink
Add a unit tests for 9313ad1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Oct 3, 2014
1 parent a38c992 commit b5e3582
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/hudson/plugins/clearcase/ClearCaseSCMTest.java
Expand Up @@ -272,6 +272,15 @@ public void testGetBranchNames() {
false);
assertArrayEquals("The branch name array is incorrect", new String[] { "branchone", "branchtwo" }, scm.getBranchNames(EMPTY_VARIABLE_RESOLVER));
}

@Test
public void testGetBranchNamesParameters() {
AbstractClearCaseScm scm = new ClearCaseSCM("${branchNames}", "label", "configspec", "viewname", true, "", true, "/tmp/c", null, false, false,
false);
Map<String, String> data = new HashMap<String,String>();
data.put("branchNames", "branchone branchtwo");
assertArrayEquals("The branch name array is incorrect", new String[] { "branchone", "branchtwo" }, scm.getBranchNames(new VariableResolver.ByMap<String>(data)));
}

@Test
public void testGetConfigSpec() {
Expand Down

0 comments on commit b5e3582

Please sign in to comment.