Package sagan.tools

Examples of sagan.tools.EclipseDownloads


        return eclipsePackage;
    }

    public EclipseDownloads build() {
        return new EclipseDownloads(platforms);
    }
View Full Code Here


        return "tools/ggts/all";
    }

    @RequestMapping(value = "/eclipse", method = { GET, HEAD })
    public String eclipseIndex(Model model) throws Exception {
        EclipseDownloads eclipseDownloads = toolsService.getEclipseDownloads();
        Map<String, EclipsePlatform> allPlatforms = eclipseDownloads.getPlatforms();
        List<EclipsePlatform> platforms = new ArrayList<>();
        platforms.add(allPlatforms.get("windows"));
        platforms.add(allPlatforms.get("mac"));
        platforms.add(allPlatforms.get("linux"));
        model.addAttribute("platforms", platforms);
View Full Code Here

        EclipsePlatform mac = new EclipsePlatform("mac", Collections.<EclipseRelease> emptyList());
        platforms.put("mac", mac);
        EclipsePlatform linux = new EclipsePlatform("linux", Collections.<EclipseRelease> emptyList());
        platforms.put("linux", linux);

        EclipseDownloads eclipseDownloads = new EclipseDownloads(platforms);

        when(service.getEclipseDownloads()).thenReturn(eclipseDownloads);
        controller.eclipseIndex(model);

        assertThat((List<EclipsePlatform>) model.get("platforms"), contains(windows, mac, linux));
View Full Code Here

TOP

Related Classes of sagan.tools.EclipseDownloads

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.