@Test public void testGetPluralName() throws Exception { ResourceDefinition resourceDefinition = new SimpleResourceDefinition(Resource.Type.Stage, "stage", "stages", Resource.Type.Task); assertEquals("stages", resourceDefinition.getPluralName()); }
@Override public String getPluralName() { return pluralName; }
SimpleResourceDefinition extends BaseResourceDefinition { @Override public String getPluralName() { return pluralName; } }
SimpleResourceDefinition extends BaseResourceDefinition { @Override public String getPluralName() { return pluralName; } SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName,
                                  Resource.Type... subTypes);  SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName,
                                  Collection<Resource.Type> subTypes,
                                  Map<DirectiveType, ? extends Collection<String>> directives); }
SimpleResourceDefinition extends BaseResourceDefinition { @Override public String getPluralName() { return pluralName; } SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName,
                                  Resource.Type... subTypes);  SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName,
                                  Collection<Resource.Type> subTypes,
                                  Map<DirectiveType, ? extends Collection<String>> directives); @Override String getPluralName(); @Override String getSingularName(); }
SimpleResourceDefinition extends BaseResourceDefinition { @Override public String getPluralName() { return pluralName; } SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName,
                                  Resource.Type... subTypes);  SimpleResourceDefinition(Resource.Type resourceType, String singularName, String pluralName,
                                  Collection<Resource.Type> subTypes,
                                  Map<DirectiveType, ? extends Collection<String>> directives); @Override String getPluralName(); @Override String getSingularName();  }