@Test public void checkAddResourceReference() { whenCollectorHasResourceReference( collector, "f.q.c.n", ResourceType.JAVA ); thenCollectorHasResourceReferences( collector, 1 ); thenResourceReferenceHasPartReferences( collector.getResourceReferences().stream().findFirst().get(), 0 ); }
public Collection<ResourceReference> getResourceReferences() { if( referencedResourcesMap != null ) { return referencedResourcesMap.values(); } return Collections.emptyList(); }
ResourceReferenceCollector { public Collection<ResourceReference> getResourceReferences() { if( referencedResourcesMap != null ) { return referencedResourcesMap.values(); } return Collections.emptyList(); } }
ResourceReferenceCollector { public Collection<ResourceReference> getResourceReferences() { if( referencedResourcesMap != null ) { return referencedResourcesMap.values(); } return Collections.emptyList(); }  }
ResourceReferenceCollector { public Collection<ResourceReference> getResourceReferences() { if( referencedResourcesMap != null ) { return referencedResourcesMap.values(); } return Collections.emptyList(); }  Collection<ResourceReference> getResourceReferences(); Collection<SharedPart> getSharedReferences(); Collection<Resource> getResources(); ResourceReference addResourceReference(String fullyQualifiedName, ResourceType type); void addResourceReferences(ResourceReferenceCollector collector); void addSharedReference(String partName, PartType partType); Resource addResource(String resourceFQN, ResourceType type); }
ResourceReferenceCollector { public Collection<ResourceReference> getResourceReferences() { if( referencedResourcesMap != null ) { return referencedResourcesMap.values(); } return Collections.emptyList(); }  Collection<ResourceReference> getResourceReferences(); Collection<SharedPart> getSharedReferences(); Collection<Resource> getResources(); ResourceReference addResourceReference(String fullyQualifiedName, ResourceType type); void addResourceReferences(ResourceReferenceCollector collector); void addSharedReference(String partName, PartType partType); Resource addResource(String resourceFQN, ResourceType type);  }