/**
* Make sure that this test is meaningful.
* Intentionally put 404 and verify that it's detected.
*/
public void testNegative() throws Exception {
DescriptorImpl d = new DescriptorImpl();
Publisher.all().add(d);
try {
FreeStyleProject p = createFreeStyleProject();
p.getPublishersList().add(new HelpNotFoundBuilder());
clickAllHelpLinks(p);
fail("should detect a failure");
} catch(AssertionError e) {
if(e.getMessage().contains(d.getHelpFile()))
; // expected
else
throw e;
} finally {
Publisher.all().remove(d);