Examples of Landscape


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

        assertThat(new JsonTranslator().toJson(group), is("{\"landscapes\":[]}"));
    }
   
    @Test public void
    translatesToAppropriateJsonRepresentation() {
        final LandscapeGroup group = new LandscapeGroup(newArrayList(new Landscape("L1", new Feature("F11", "E11", new CiServerType("T11")),
                                                                                         new Feature("F12", "E12", new CiServerType("T12"))),
                                                                     new Landscape("L2", new Feature("F21", "E21", new CiServerType("T21")),
                                                                                         new Feature("F22", "E22", new CiServerType("T22")))));
       
        assertThat(new JsonTranslator().toJson(group), is("{\"landscapes\":[" +
                                                              "{\"name\":\"L1\"}," +
                                                              "{\"name\":\"L2\"}" +
View Full Code Here

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

    private void makeNote(final String landscapeName, final TargetId targetId, final String note) {
        if (targetId.id() == null || targetId.id().isEmpty()) {
            return;
        }

        final Landscape landscape = landscapeFetcher.landscapeNamed(landscapeName);
        for (Feature feature : landscape.features()) {
            if (spyIntermediary.passNoteOn(feature, targetId, note)) {
                return;
            }
            LOG.error("Failed to handle request to note target " + targetId.id());
        }
View Full Code Here

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

    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.Landscape

                    throw new IllegalStateException();
                }
               
                final String landscapeName = matcher.group(1);
                final List<Feature> features = newArrayList(transform(filter(transform(filter(skip(data, 1), notBlank()), toMatchers()), matches()), toFeature()));
                return new Landscape(landscapeName, features.toArray(new Feature[features.size()]));
            }
        };
    }
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.