Skip to content
Permalink
Browse files
[Fix JENKINS-23411] Fix testing failure introduced in PR-3007
  • Loading branch information
liketic committed Sep 24, 2017
1 parent 3adfed4 commit 0b56fb5354b483f5a0f0860f587f5f3cc1b8d939
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/src/test/java/hudson/model/ListViewTest.java
@@ -266,7 +266,7 @@ private void checkLinkFromItemExistsAndIsValid(Item item, ItemGroup ig, Item top
folder.addView(view);
FreeStyleProject job = folder.createProject(FreeStyleProject.class, "job1");
view.add(job);

List<TopLevelItem> items = view.getItems();
assertEquals(1, items.size());
assertEquals("job1", items.get(0).getName());
@@ -275,13 +275,13 @@ private void checkLinkFromItemExistsAndIsValid(Item item, ItemGroup ig, Item top
view.doRemoveJobFromView("job1");
List<TopLevelItem> itemsNow = view.getItems();
assertEquals(0, itemsNow.size());

// remove a not contained job
try {
view.doRemoveJobFromView("job2");
fail("Remove job2");
} catch(Failure e) {
assertEquals(e.getMessage(), "Query parameter 'name' does not correspond to a known item");
assertEquals(e.getMessage(), "Query parameter 'name' does not correspond to a known and readable item");
}
}

0 comments on commit 0b56fb5

Please sign in to comment.