#33 - Projects can now have an explicit full name.

Project has a withFullName(…) to be able to define it manually. Projects makes use of that to explicitly define the name for Apache backed ones.

Introduced a skipTests property to make explicit, which projects should not have their test run during a build.

Introduced overloads to allow the optional lookup of a Project by name.
This commit is contained in:
Oliver Gierke
2016-11-24 15:28:53 +01:00
parent ac1273856c
commit 05ae394fad
4 changed files with 40 additions and 10 deletions

View File

@@ -48,6 +48,13 @@ public class ProjectUnitTests {
*/
@Test
public void findsProjectByKey() {
assertThat(Projects.byName("DATACMNS"), is(Projects.COMMONS));
assertThat(Projects.requiredByName("DATACMNS"), is(Projects.COMMONS));
}
@Test
public void returnsCustomFullNameIfSet() {
assertThat(Projects.BUILD.getFullName(), is("Spring Data Build"));
assertThat(Projects.CASSANDRA.getFullName(), is("Spring Data for Apache Cassandra"));
}
}