@Test public void testGetSingularName() throws Exception { Resource.Type type = new Resource.Type("resource"); ViewExternalSubResourceDefinition definition = new ViewExternalSubResourceDefinition(type); Assert.assertEquals("resource", definition.getSingularName()); }
@Override public String getSingularName() { return "resource"; }
ViewExternalSubResourceDefinition extends BaseResourceDefinition { @Override public String getSingularName() { return "resource"; } }
ViewExternalSubResourceDefinition extends BaseResourceDefinition { @Override public String getSingularName() { return "resource"; } ViewExternalSubResourceDefinition(Resource.Type type); }
ViewExternalSubResourceDefinition extends BaseResourceDefinition { @Override public String getSingularName() { return "resource"; } ViewExternalSubResourceDefinition(Resource.Type type); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions(); }
ViewExternalSubResourceDefinition extends BaseResourceDefinition { @Override public String getSingularName() { return "resource"; } ViewExternalSubResourceDefinition(Resource.Type type); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions();  }