@Test public void testGetSubResourceDefinitions() throws Exception { FeedResourceDefinition definition = new FeedResourceDefinition(); Set<SubResourceDefinition> subResourceDefinitions = definition.getSubResourceDefinitions (); Assert.assertEquals(1, subResourceDefinitions.size()); SubResourceDefinition subResourceDefinition = subResourceDefinitions.iterator().next(); Assert.assertEquals(Resource.Type.DRInstance, subResourceDefinition.getType()); }
@Override public Set<SubResourceDefinition> getSubResourceDefinitions() { Set<SubResourceDefinition> setChildren = new HashSet<SubResourceDefinition>(); setChildren.add(new SubResourceDefinition(Resource.Type.DRInstance)); return setChildren; }
FeedResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { Set<SubResourceDefinition> setChildren = new HashSet<SubResourceDefinition>(); setChildren.add(new SubResourceDefinition(Resource.Type.DRInstance)); return setChildren; } }
FeedResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { Set<SubResourceDefinition> setChildren = new HashSet<SubResourceDefinition>(); setChildren.add(new SubResourceDefinition(Resource.Type.DRInstance)); return setChildren; } FeedResourceDefinition(); }
FeedResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { Set<SubResourceDefinition> setChildren = new HashSet<SubResourceDefinition>(); setChildren.add(new SubResourceDefinition(Resource.Type.DRInstance)); return setChildren; } FeedResourceDefinition(); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions(); }
FeedResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { Set<SubResourceDefinition> setChildren = new HashSet<SubResourceDefinition>(); setChildren.add(new SubResourceDefinition(Resource.Type.DRInstance)); return setChildren; } FeedResourceDefinition(); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions();  }