Package hudson.model.HelpLinkTest.HelpNotFoundBuilder

Examples of hudson.model.HelpLinkTest.HelpNotFoundBuilder.DescriptorImpl


    /**
     * 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);
View Full Code Here

TOP

Related Classes of hudson.model.HelpLinkTest.HelpNotFoundBuilder.DescriptorImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.