@Test void addWithKnownBackend() { when(entityType1.getId()).thenReturn(entityTypeId1); when(dataService.getMeta()).thenReturn(metaDataService); when(metaDataService.getBackend(entityType1)).thenReturn(repositoryCollection); repo.add(entityType1); verify(delegateRepository).add(entityType1); }
@Override public void add(EntityType entity) { addEntityType(entity); }
EntityTypeRepositoryDecorator extends AbstractRepositoryDecorator<EntityType> { @Override public void add(EntityType entity) { addEntityType(entity); } }
EntityTypeRepositoryDecorator extends AbstractRepositoryDecorator<EntityType> { @Override public void add(EntityType entity) { addEntityType(entity); } EntityTypeRepositoryDecorator(
      Repository<EntityType> delegateRepository,
      DataService dataService,
      EntityTypeDependencyResolver entityTypeDependencyResolver); }
EntityTypeRepositoryDecorator extends AbstractRepositoryDecorator<EntityType> { @Override public void add(EntityType entity) { addEntityType(entity); } EntityTypeRepositoryDecorator(
      Repository<EntityType> delegateRepository,
      DataService dataService,
      EntityTypeDependencyResolver entityTypeDependencyResolver); @Override void update(EntityType entity); @Override void update(Stream<EntityType> entities); @Override void delete(EntityType entity); @Override void delete(Stream<EntityType> entities); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void deleteAll(); @Override void add(EntityType entity); @Override Integer add(Stream<EntityType> entities); }
EntityTypeRepositoryDecorator extends AbstractRepositoryDecorator<EntityType> { @Override public void add(EntityType entity) { addEntityType(entity); } EntityTypeRepositoryDecorator(
      Repository<EntityType> delegateRepository,
      DataService dataService,
      EntityTypeDependencyResolver entityTypeDependencyResolver); @Override void update(EntityType entity); @Override void update(Stream<EntityType> entities); @Override void delete(EntityType entity); @Override void delete(Stream<EntityType> entities); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void deleteAll(); @Override void add(EntityType entity); @Override Integer add(Stream<EntityType> entities);  }