Skip to content

Commit

Permalink
Merge pull request #3039 from liketic/bugfix/pull/3007
Browse files Browse the repository at this point in the history
[Fix JENKINS-23411] Fix testing failure introduced in PR-3007
  • Loading branch information
oleg-nenashev committed Sep 24, 2017
2 parents 3adfed4 + 0b56fb5 commit 49de269
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/src/test/java/hudson/model/ListViewTest.java
Expand Up @@ -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());
Expand All @@ -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");
}
}

Expand Down

0 comments on commit 49de269

Please sign in to comment.