Examples of CiServerType


Examples of org.netmelody.cieye.core.domain.CiServerType

    canPullFromTheJenkinsLiveInstance() {
        final GsonBuilder builder = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        final Contact realContact = new JsonRestRequester(builder.create());
        final JenkinsSpy witness = new JenkinsSpy("http://ci.jenkins-ci.org", new RecordedKnownOffenders(new SettingsFile(new File(""))), realContact);
       
        final TargetDigestGroup digests = witness.targetsConstituting(new Feature("Jenkins core", "http://ci.jenkins-ci.org", new CiServerType("JENKINS")));
       
        assertThat(witness.statusOf(digests.iterator().next().id()), is(notNullValue(TargetDetail.class)));
    }
View Full Code Here

Examples of org.netmelody.cieye.core.domain.CiServerType

    canPullFromSecureJenkinsLiveInstance() {
        final GsonBuilder builder = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        final Contact realContact = new JsonRestRequester(builder.create());
        final JenkinsSpy witness = new JenkinsSpy("https://jenkins.puppetlabs.com", new RecordedKnownOffenders(new SettingsFile(new File(""))), realContact);
       
        final TargetDigestGroup digests = witness.targetsConstituting(new Feature("MCO Core", "https://jenkins.puppetlabs.com", new CiServerType("JENKINS")));
       
        assertThat(witness.statusOf(digests.iterator().next().id()), is(notNullValue(TargetDetail.class)));
    }
View Full Code Here

Examples of org.netmelody.cieye.core.domain.CiServerType

    private void loadFromFile() {
        final List<Landscape> landscapes = extractLandscapesFrom(viewsFile.readContent());
       
        if (landscapes.isEmpty()) {
            this.landscapeGroup = new LandscapeGroup(newArrayList(new Landscape("CI-eye Demo", new Feature("My Product", "", new CiServerType("DEMO")))));
            return;
        }
       
        this.landscapeGroup = new LandscapeGroup(landscapes);
    }
View Full Code Here

Examples of org.netmelody.cieye.core.domain.CiServerType

    private static Function<Matcher, Feature> toFeature() {
        return new Function<Matcher, Feature>() {
            @Override public Feature apply(Matcher featureMatcher) {
                return new Feature(featureMatcher.group(3),
                                   featureMatcher.group(2),
                                   new CiServerType(featureMatcher.group(1)),
                                   featureMatcher.group(4),
                                   featureMatcher.group(5));
            }
        };
    }
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.