Package sagan.tools

Examples of sagan.tools.ToolSuitePlatform


        assertThat(toolSuite.getPlatformList().get(1).getName(), equalTo("Mac"));
    }

    @Test
    public void addsAnEclipseVersionToThePlatform() throws Exception {
        ToolSuitePlatform platform = toolSuite.getPlatformList().get(1);
        assertThat(platform.getEclipseVersions().size(), equalTo(1));
        assertThat(platform.getEclipseVersions().get(0).getName(), equalTo("4.3"));
    }
View Full Code Here


        assertThat(platform.getEclipseVersions().get(0).getName(), equalTo("4.3"));
    }

    @Test
    public void addsAnArchitectureToTheEclipseVersion() throws Exception {
        ToolSuitePlatform platform = toolSuite.getPlatformList().get(1);
        EclipseVersion eclipseVersion = platform.getEclipseVersions().get(0);
        assertThat(eclipseVersion.getArchitectures().size(), equalTo(1));
        assertThat(eclipseVersion.getArchitectures().get(0).getName(), equalTo("Mac OS X (Cocoa)"));
    }
View Full Code Here

        assertThat(eclipseVersion.getArchitectures().get(0).getName(), equalTo("Mac OS X (Cocoa)"));
    }

    @Test
    public void addsADownloadLinkTheArchitecture() throws Exception {
        ToolSuitePlatform platform = toolSuite.getPlatformList().get(1);
        EclipseVersion eclipseVersion = platform.getEclipseVersions().get(0);
        Architecture architecture = eclipseVersion.getArchitectures().get(0);

        assertThat(architecture.getDownloadLinks().size(), equalTo(1));
        assertThat(
                architecture.getDownloadLinks().get(0).getUrl(),
View Full Code Here

                equalTo("http://static.springsource.org/sts/nan/v360/NewAndNoteworthy.html"));

        List<ToolSuitePlatform> platforms = toolSuite.getPlatformList();
        assertThat(platforms.size(), equalTo(3));

        ToolSuitePlatform windows = platforms.get(0);
        ToolSuitePlatform mac = platforms.get(1);

        assertThat(windows.getName(), equalTo("Windows"));
        assertThat(mac.getName(), equalTo("Mac"));
        assertThat(platforms.get(2).getName(), equalTo("Linux"));

        List<EclipseVersion> eclipseVersions = windows.getEclipseVersions();
        assertThat(eclipseVersions.size(), equalTo(1));
        assertThat(eclipseVersions.get(0).getName(), equalTo("4.4"));
View Full Code Here

                equalTo("http://static.springsource.org/sts/nan/v360/NewAndNoteworthy.html"));

        List<ToolSuitePlatform> platforms = toolSuite.getPlatformList();
        assertThat(platforms.size(), equalTo(3));

        ToolSuitePlatform windows = platforms.get(0);
        ToolSuitePlatform mac = platforms.get(1);

        assertThat(windows.getName(), equalTo("Windows"));
        assertThat(mac.getName(), equalTo("Mac"));
        assertThat(platforms.get(2).getName(), equalTo("Linux"));

        List<EclipseVersion> eclipseVersions = mac.getEclipseVersions();
        assertThat(eclipseVersions.size(), equalTo(1));
        assertThat(eclipseVersions.get(0).getName(), equalTo("4.4"));

        assertThat(windows.getEclipseVersions().get(0).getArchitectures().get(0).getDownloadLinks().size(), equalTo(1));
        DownloadLink downloadLink =
View Full Code Here

        assertThat(toolSuite.getPlatformList().get(1).getName(), equalTo("Mac"));
    }

    @Test
    public void addsBothEclipseVersionsToThePlatform() throws Exception {
        ToolSuitePlatform mac = toolSuite.getPlatformList().get(1);
        assertThat(mac.getEclipseVersions().size(), equalTo(2));
        assertThat(mac.getEclipseVersions().get(0).getName(), equalTo("4.3"));
        assertThat(mac.getEclipseVersions().get(1).getName(), equalTo("3.8.2"));
    }
View Full Code Here

        assertThat(mac.getEclipseVersions().get(1).getName(), equalTo("3.8.2"));
    }

    @Test
    public void addsAnArchitectureToEachEclipseVersion() throws Exception {
        ToolSuitePlatform mac = toolSuite.getPlatformList().get(1);
        EclipseVersion eclipseVersion = mac.getEclipseVersions().get(0);
        assertThat(eclipseVersion.getArchitectures().size(), equalTo(1));
        assertThat(eclipseVersion.getArchitectures().get(0).getName(), equalTo("Mac OS X (Cocoa)"));

        EclipseVersion windowsEclipseVersion = mac.getEclipseVersions().get(1);
        assertThat(windowsEclipseVersion.getArchitectures().size(), equalTo(1));
        assertThat(windowsEclipseVersion.getArchitectures().get(0).getName(), equalTo("Mac OS X (Cocoa)"));
    }
View Full Code Here

TOP

Related Classes of sagan.tools.ToolSuitePlatform

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.