@Test void addAttribute() { EntityType entityType = when(mock(EntityType.class).getId()).thenReturn(REPOSITORY_NAME).getMock(); Attribute attribute = when(mock(Attribute.class).getName()).thenReturn("attribute").getMock(); indexActionRepositoryCollectionDecorator.addAttribute(entityType, attribute); verify(decoratedRepositoryCollection).addAttribute(entityType, attribute); verify(indexActionRegisterService).register(entityType, null); }
@Override public void addAttribute(EntityType entityType, Attribute attribute) { this.indexActionRegisterService.register(entityType, null); delegate().addAttribute(entityType, attribute); }
IndexActionRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public void addAttribute(EntityType entityType, Attribute attribute) { this.indexActionRegisterService.register(entityType, null); delegate().addAttribute(entityType, attribute); } }
IndexActionRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public void addAttribute(EntityType entityType, Attribute attribute) { this.indexActionRegisterService.register(entityType, null); delegate().addAttribute(entityType, attribute); } IndexActionRepositoryCollectionDecorator(
      RepositoryCollection delegateRepositoryCollection,
      IndexActionRegisterService indexActionRegisterService); }
IndexActionRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public void addAttribute(EntityType entityType, Attribute attribute) { this.indexActionRegisterService.register(entityType, null); delegate().addAttribute(entityType, attribute); } IndexActionRepositoryCollectionDecorator(
      RepositoryCollection delegateRepositoryCollection,
      IndexActionRegisterService indexActionRegisterService); @Override void deleteRepository(EntityType entityType); @Override void updateRepository(EntityType entityType, EntityType updatedEntityType); @Override void addAttribute(EntityType entityType, Attribute attribute); @Override void updateAttribute(EntityType entityType, Attribute attr, Attribute updatedAttr); @Override void deleteAttribute(EntityType entityType, Attribute attr); @Override Repository<Entity> createRepository(EntityType entityType); }
IndexActionRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public void addAttribute(EntityType entityType, Attribute attribute) { this.indexActionRegisterService.register(entityType, null); delegate().addAttribute(entityType, attribute); } IndexActionRepositoryCollectionDecorator(
      RepositoryCollection delegateRepositoryCollection,
      IndexActionRegisterService indexActionRegisterService); @Override void deleteRepository(EntityType entityType); @Override void updateRepository(EntityType entityType, EntityType updatedEntityType); @Override void addAttribute(EntityType entityType, Attribute attribute); @Override void updateAttribute(EntityType entityType, Attribute attr, Attribute updatedAttr); @Override void deleteAttribute(EntityType entityType, Attribute attr); @Override Repository<Entity> createRepository(EntityType entityType);  }