Package sagan.tools

Examples of sagan.tools.ToolSuiteDownloads


        when(restClient.get(eq(restTemplate), anyString(), (Class<String>) anyObject())).thenReturn(responseXml);
    }

    @Test
    public void testGetStsDownloads() throws Exception {
        ToolSuiteDownloads toolSuite = service.getStsGaDownloads();
        assertThat(toolSuite, notNullValue());

        assertThat(
                toolSuite.getWhatsNew(),
                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"));

        assertThat(windows.getEclipseVersions().get(0).getArchitectures().get(0).getDownloadLinks().size(), equalTo(1));
        DownloadLink downloadLink =
                windows.getEclipseVersions().get(0).getArchitectures().get(0).getDownloadLinks().get(0);
        assertThat(
                downloadLink.getUrl(),
                equalTo("http://download.springsource.com/release/STS/3.6.0/dist/e4.4/spring-tool-suite-3.6.0.RELEASE-e4.4-win32.zip"));

        assertThat(toolSuite.getArchives().size(), equalTo(5));
        assertThat(toolSuite.getArchives().get(0).getVersion(), equalTo("4.4"));
        assertThat(toolSuite.getArchives().get(1).getVersion(), equalTo("4.3.2"));
        assertThat(toolSuite.getArchives().get(2).getVersion(), equalTo("4.2.2"));
        assertThat(toolSuite.getArchives().get(3).getVersion(), equalTo("3.8.2"));
        assertThat(toolSuite.getArchives().get(4).getVersion(), equalTo("3.7.2"));
    }
View Full Code Here


        assertThat(toolSuite.getArchives().get(4).getVersion(), equalTo("3.7.2"));
    }

    @Test
    public void testGetGgtsDownloads() throws Exception {
        ToolSuiteDownloads toolSuite = service.getGgtsGaDownloads();
        assertThat(toolSuite, notNullValue());

        assertThat(
                toolSuite.getWhatsNew(),
                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 =
                windows.getEclipseVersions().get(0).getArchitectures().get(0).getDownloadLinks().get(0);
        assertThat(
                downloadLink.getUrl(),
                equalTo("http://download.springsource.com/release/STS/3.6.0/dist/e4.4/groovy-grails-tool-suite-3.6.0.RELEASE-e4.4-win32.zip"));

        assertThat(toolSuite.getArchives().size(), equalTo(5));
        assertThat(toolSuite.getArchives().get(0).getVersion(), equalTo("4.4"));
        assertThat(toolSuite.getArchives().get(1).getVersion(), equalTo("4.3.2"));
        assertThat(toolSuite.getArchives().get(2).getVersion(), equalTo("4.2.2"));
        assertThat(toolSuite.getArchives().get(3).getVersion(), equalTo("3.8.2"));
        assertThat(toolSuite.getArchives().get(4).getVersion(), equalTo("3.7.2"));
    }
View Full Code Here

TOP

Related Classes of sagan.tools.ToolSuiteDownloads

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.