Package sagan.tools

Examples of sagan.tools.UpdateSiteArchive


        architecture.getDownloadLinks().add(link);
    }

    private void extractArchive(Download download) {
        String url = download.getBucket() + download.getFile();
        UpdateSiteArchive archive = new UpdateSiteArchive(download.getEclipseVersion(), url, download.getSize());
        if (!updateSiteArchives.contains(archive)) {
            updateSiteArchives.add(archive);
        }
    }
View Full Code Here


    }

    @Test
    public void addsAnUpdateSiteArchive() {
        assertThat(toolSuite.getArchives().size(), equalTo(1));
        UpdateSiteArchive archive = toolSuite.getArchives().get(0);
        assertThat(archive.getVersion(), equalTo("4.3.x"));
        assertThat(
                archive.getUrl(),
                equalTo("http://dist.springsource.com/release/TOOLS/update/3.3.0.RELEASE/e4.3/springsource-tool-suite-3.3.0.RELEASE-e4.3-updatesite.zip"));
        assertThat(archive.getFileSize(), equalTo("172MB"));
        assertThat(archive.getFileName(), equalTo("springsource-tool-suite-3.3.0.RELEASE-e4.3-updatesite.zip"));
        assertThat(archive.getFileName(), equalTo("springsource-tool-suite-3.3.0.RELEASE-e4.3-updatesite.zip"));
        assertThat(archive.getFileName(), equalTo("springsource-tool-suite-3.3.0.RELEASE-e4.3-updatesite.zip"));
    }
View Full Code Here

TOP

Related Classes of sagan.tools.UpdateSiteArchive

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.