Package org.netmelody.cieye.spies.jenkins.jsondomain

Examples of org.netmelody.cieye.spies.jenkins.jsondomain.JobDetail.lastBadBuildUrl()


        final JobDetail jobDetail = new JobDetail();
        jobDetail.lastUnstableBuild = build(123, "http://blah/455");
        jobDetail.lastUnsuccessfulBuild = build(9, "http://blah/454");
        jobDetail.lastFailedBuild = build(456, "http://blah/456");
       
        assertThat(jobDetail.lastBadBuildUrl(), is("http://blah/456"));
    }
   
    @Test public void
    correctlyDeterminesTheLastFailedBuildUrlWithNonLexographicUrls() {
        final JobDetail jobDetail = new JobDetail();
View Full Code Here


        final JobDetail jobDetail = new JobDetail();
        jobDetail.lastUnstableBuild = build(123, "http://blah/123");
        jobDetail.lastUnsuccessfulBuild = build(9, "http://blah/9");
        jobDetail.lastFailedBuild = build(456, "http://blah/456");
       
        assertThat(jobDetail.lastBadBuildUrl(), is("http://blah/456"));
    }

    private Build build(long number, String url) {
        final Build build = new Build();
        build.number = number;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.