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