@Test public void testAddAspect() { PropertyElementDescriptors descriptors = new PropertyElementDescriptors(TestPmo.SINGLE_PMO_PROPERTY); assertThat(descriptors.getAllAspects(), is(empty())); EnabledAspectDefinition enabledAspectDefinition = new EnabledAspectDefinition(EnabledType.ENABLED); descriptors.addAspect(Arrays.<LinkkiAspectDefinition> asList(enabledAspectDefinition)); assertThat(descriptors.getAllAspects(), contains(enabledAspectDefinition)); }
public void addAspect(List<LinkkiAspectDefinition> aspectDefs) { additionalAspects.addAll(aspectDefs); }
PropertyElementDescriptors { public void addAspect(List<LinkkiAspectDefinition> aspectDefs) { additionalAspects.addAll(aspectDefs); } }
PropertyElementDescriptors { public void addAspect(List<LinkkiAspectDefinition> aspectDefs) { additionalAspects.addAll(aspectDefs); } PropertyElementDescriptors(String pmoPropertyName); }
PropertyElementDescriptors { public void addAspect(List<LinkkiAspectDefinition> aspectDefs) { additionalAspects.addAll(aspectDefs); } PropertyElementDescriptors(String pmoPropertyName); int getPosition(); String getPmoPropertyName(); ElementDescriptor getDescriptor(Object pmo); void addAspect(List<LinkkiAspectDefinition> aspectDefs); boolean isNotEmpty(); List<LinkkiAspectDefinition> getAllAspects(); }
PropertyElementDescriptors { public void addAspect(List<LinkkiAspectDefinition> aspectDefs) { additionalAspects.addAll(aspectDefs); } PropertyElementDescriptors(String pmoPropertyName); int getPosition(); String getPmoPropertyName(); ElementDescriptor getDescriptor(Object pmo); void addAspect(List<LinkkiAspectDefinition> aspectDefs); boolean isNotEmpty(); List<LinkkiAspectDefinition> getAllAspects();  }