Package sagan.projects

Examples of sagan.projects.Project


                                "http://docs.spring.io/spring/docs/{version}/javadoc-api/");

        mockMvc.perform(request)
                .andExpect(redirectedUrl("spring-new?navSection=projects"));

        Project project = projects.getProject("spring-new");
        assertThat(project.getName(), equalTo("Spring New"));
        List<ProjectRelease> projectReleases = project.getProjectReleases();
        assertThat(projectReleases.get(0).getVersion(), equalTo("4.0.2.BUILD-SNAPSHOT"));
        assertThat(projectReleases.get(1).getVersion(), equalTo("4.0.1.RELEASE"));
    }
View Full Code Here


                                "http://docs.spring.io/spring-data/jdbc/docs/{version}/api/");

        mockMvc.perform(request)
                .andExpect(redirectedUrl("spring-data-jdbc-ext?navSection=projects"));

        Project project = projects.getProject("spring-data-jdbc-ext");
        assertThat(project.getName(), equalTo("Spring Data JDBC Extensions"));
        List<ProjectRelease> projectReleases = project.getProjectReleases();
        assertThat(projectReleases.get(0).getVersion(), equalTo("1.0.0.RELEASE"));
        assertThat(projectReleases.get(0).getArtifactId(), equalTo("spring-jdbc-oracle"));
    }
View Full Code Here

                "http://docs.spring.io/spring-new/docs/{version}/spring-new/htmlsingle/",
                "http://docs.spring.io/spring-new/docs/{version}/javadoc-api/",
                "org.springframework.new",
                "spring-new");

        Project project = new Project("spring-new",
                "New Spring Project",
                "http://github.com/spring-projects/spring-new",
                "http://projects.spring.io/spring-new",
                new ArrayList<>(Arrays.asList(release)),
                false,
View Full Code Here

        return edit(project, model);
    }

    @RequestMapping(value = "{id}", method = GET)
    public String edit(@PathVariable String id, Model model) {
        Project project = service.getProject(id);
        return edit(project, model);
    }
View Full Code Here

                                @RequestParam(value="callback", required=false) String callback,
                                HttpServletResponse response) throws IOException {
        response.setContentType("text/javascript; charset=UTF-8");
        PrintWriter out = response.getWriter();

        Project project = service.getProject(projectId);

        if(callback == null || !StringUtils.hasText(callback)) {
            out.print(this.objectMapper.writeValueAsString(project));
        } else {
            out.print(callback + String.format("(%s);", this.objectMapper.writeValueAsString(project)));
View Full Code Here

                    "<ul>\n";

            for (String project : asciidocGuide.getProjects()) {

                log.debug("Looking up project metadata for " + project);
                Project springIoProject = projectMetadataService.getProject(project);
                sidebar += "<li><a href='" + springIoProject.getSiteUrl() + "'>" + springIoProject.getName()
                        + "</a></li>\n";
            }
            sidebar += "</ul>\n";
        }
View Full Code Here

        assertThat(active.size(), equalTo(30));
    }

    @Test
    public void projectWithCustomSiteAndRepo() throws IOException {
        Project project = service.getProject("spring-framework");
        assertThat(project.getId(), equalTo("spring-framework"));
        assertThat(project.getName(), equalTo("Spring Framework"));
        assertThat(project.getRepoUrl(), equalTo("http://github.com/spring-projects/spring-framework"));
        assertThat(project.getSiteUrl(), equalTo("http://projects.spring.io/spring-framework"));
        assertThat(project.getCategory(), equalTo("active"));
        assertThat(project.hasSite(), equalTo(true));
    }
View Full Code Here

        assertThat(project.hasSite(), equalTo(true));
    }

    @Test
    public void projectWithNoSite() throws IOException {
        Project project = service.getProject("spring-integration-dsl-groovy");
        assertThat(project.getId(), equalTo("spring-integration-dsl-groovy"));
        assertThat(project.getName(), equalTo("Spring Integration Groovy DSL"));
        assertThat(project.getRepoUrl(), equalTo("http://github.com/spring-projects/spring-integration-dsl-groovy"));
        assertThat(project.getSiteUrl(), equalTo(""));
        assertThat(project.hasSite(), equalTo(false));
    }
View Full Code Here

                equalTo("http://docs.spring.io/spring/docs/3.1.4.RELEASE/javadoc-api/"));
    }

    @Test
    public void nonAggregatorProject() throws IOException {
        Project project = service.getProject("spring-security");
        assertThat(project.isAggregator(), equalTo(false));
    }
View Full Code Here

        assertThat(project.isAggregator(), equalTo(false));
    }

    @Test
    public void aggregatorProject() throws IOException {
        Project project = service.getProject("spring-data");
        assertThat(project.isAggregator(), equalTo(true));
        assertThat(project.getId(), equalTo("spring-data"));
    }
View Full Code Here

TOP

Related Classes of sagan.projects.Project

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.