Skip to content

Commit

Permalink
add test for JENKINS-19716
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichi committed Nov 1, 2013
1 parent 65236c0 commit b0dd089
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/hudson/plugins/nested_view/NestedViewTest.java
Expand Up @@ -113,6 +113,15 @@ public void testGetWorstResult() throws Exception {
assertSame(SUCCESS, NestedView.getWorstResult(view)); // Ignore disabled job
}

public void testStatusOfEmptyNest() throws Exception {
NestedView parent = new NestedView("parent");
parent.setOwner(hudson);
NestedView child = new NestedView("child");
parent.addView(child);
assertSame(null, NestedView.getWorstResult(child)); // Empty
assertSame(null, NestedView.getWorstResult(parent)); // contains Empty child only
}

public void testDoViewExistsCheck() {
NestedView view = new NestedView("test");
view.setOwner(hudson);
Expand Down

0 comments on commit b0dd089

Please sign in to comment.