@Test public void testGetSubResourceDefinitions() throws Exception { final ComponentStackVersionResourceDefinition resourceDefinition = new ComponentStackVersionResourceDefinition(null); final Set<SubResourceDefinition> subResourceDefinitions = resourceDefinition.getSubResourceDefinitions (); Assert.assertEquals(1, subResourceDefinitions.size()); }
@Override public Set<SubResourceDefinition> getSubResourceDefinitions() { final Set<SubResourceDefinition> subResourceDefintions = new HashSet<SubResourceDefinition>(); subResourceDefintions.add(new SubResourceDefinition(Resource.Type.RepositoryVersion)); return subResourceDefintions; }
ComponentStackVersionResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { final Set<SubResourceDefinition> subResourceDefintions = new HashSet<SubResourceDefinition>(); subResourceDefintions.add(new SubResourceDefinition(Resource.Type.RepositoryVersion)); return subResourceDefintions; } }
ComponentStackVersionResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { final Set<SubResourceDefinition> subResourceDefintions = new HashSet<SubResourceDefinition>(); subResourceDefintions.add(new SubResourceDefinition(Resource.Type.RepositoryVersion)); return subResourceDefintions; } ComponentStackVersionResourceDefinition(Resource.Type type); }
ComponentStackVersionResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { final Set<SubResourceDefinition> subResourceDefintions = new HashSet<SubResourceDefinition>(); subResourceDefintions.add(new SubResourceDefinition(Resource.Type.RepositoryVersion)); return subResourceDefintions; } ComponentStackVersionResourceDefinition(Resource.Type type); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions(); }
ComponentStackVersionResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { final Set<SubResourceDefinition> subResourceDefintions = new HashSet<SubResourceDefinition>(); subResourceDefintions.add(new SubResourceDefinition(Resource.Type.RepositoryVersion)); return subResourceDefintions; } ComponentStackVersionResourceDefinition(Resource.Type type); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions();  }