Package org.netmelody.cieye.core.domain

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


public class LandscapeGroupTest {

    @Test public void
    translatesToAppropriateJsonRepresentationWhenEmpty() {
        final LandscapeGroup group = new LandscapeGroup();
       
        assertThat(new JsonTranslator().toJson(group), is("{\"landscapes\":[]}"));
    }
View Full Code Here


        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\":[" +
View Full Code Here

    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

TOP

Related Classes of org.netmelody.cieye.core.domain.LandscapeGroup

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.