RepositoryResourceDefinition extends BaseResourceDefinition { @Override public String getSingularName() { return "repository"; } RepositoryResourceDefinition(); @Override String getPluralName(); @Override String getSingularName(); @Override Collection<String> getCreateDirectives(); static String VALIDATE_ONLY_DIRECTIVE; }
@Test public void testGetSingularName() throws Exception { final RepositoryResourceDefinition resourceDefinition = new RepositoryResourceDefinition(); Assert.assertEquals("repository", resourceDefinition.getSingularName()); }