#28 - Project lookup by String now also considers keys.

This commit is contained in:
Oliver Gierke
2016-06-19 09:29:15 +02:00
parent 51fd13c6b6
commit 7ee134c777
2 changed files with 12 additions and 3 deletions

View File

@@ -42,4 +42,12 @@ public class ProjectUnitTests {
assertThat(projects.get(0), is(Projects.BUILD));
assertThat(projects.get(1), is(Projects.COMMONS));
}
/**
* @see #28
*/
@Test
public void findsProjectByKey() {
assertThat(Projects.byName("DATACMNS"), is(Projects.COMMONS));
}
}