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

Examples of org.netmelody.cieye.spies.jenkins.jsondomain.BuildDetail


    @Test public void
    includesLastStartTimeForGreenBuild() {
        final JobDetail jobDetail = new JobDetail();
        jobDetail.lastBuild = new Build();
        jobDetail.lastBuild.url = "buildUrl";
        final BuildDetail buildDetail = new BuildDetail();
        buildDetail.timestamp = 100L;
       
        context.checking(new Expectations() {{
            allowing(contact).makeJsonRestCall("jobUrl/api/json", JobDetail.class); will(returnValue(jobDetail));
            allowing(contact).makeJsonRestCall("buildUrl/api/json", BuildDetail.class); will(returnValue(buildDetail));
View Full Code Here


       
        if (sponsorCache.containsKey(buildUrl)) {
            return sponsorCache.get(buildUrl);
        }
       
        final BuildDetail buildData = this.buildDetailFetcher.detailsOf(buildUrl);
        if (null == buildData) {
            return new HashSet<Sponsor>();
        }
       
        final Set<Sponsor> sponsors = new HashSet<Sponsor>(detective.search(commitMessagesOf(buildData)));
       
        if (sponsors.isEmpty()) {
            for (String upstreamBuildUrl : buildData.upstreamBuildUrls()) {
                sponsors.addAll(sponsorsOf(communicator.endpoint() + "/" + upstreamBuildUrl));
            }
        }
       
        final Set<Sponsor> result = unmodifiableSet(sponsors);
View Full Code Here

TOP

Related Classes of org.netmelody.cieye.spies.jenkins.jsondomain.BuildDetail

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.