#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:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user