Skip to content
Permalink
Browse files

add test for JENKINS-19716

  • Loading branch information...
yoichi committed Nov 1, 2013
1 parent 65236c0 commit b0dd089b7ee3369206b5aa289e718362abc0f681
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/test/java/hudson/plugins/nested_view/NestedViewTest.java
@@ -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);

0 comments on commit b0dd089

Please sign in to comment.
You can’t perform that action at this time.