Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JENKINS-15048 - shorten build data display name
Longer display name moves crucial data off screen to the right.
- Loading branch information
Mark Waite
committed
Sep 9, 2012
1 parent
c843a70
commit 786740d
Showing
2 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package hudson.plugins.git.util; | ||
|
||
import hudson.plugins.git.AbstractGitTestCase; | ||
|
||
import hudson.plugins.git.util.BuildData; | ||
|
||
/** | ||
* @author Mark Waite | ||
*/ | ||
public class BuildDataTest extends AbstractGitTestCase { | ||
/** | ||
* Verifies that the display name is "Git Build Data". | ||
*/ | ||
public void testDisplayNameWithoutSCM() throws Exception { | ||
final BuildData data = new BuildData(); | ||
assertEquals(data.getDisplayName(), "Git Build Data"); | ||
} | ||
|
||
/** | ||
* Verifies that the display name is "Git Build Data:scmName". | ||
*/ | ||
public void testDisplayNameWithSCM() throws Exception { | ||
final String scmName = "testSCM"; | ||
final BuildData data = new BuildData(scmName); | ||
assertEquals("Git Build Data:" + scmName, data.getDisplayName()); | ||
} | ||
} |