@Test void testCreateRepository() { repoCollectionDecorator.createRepository(entityType); inOrder.verify(repoCollection).createRepository(entityType); inOrder.verify(entityTypeRegistry).registerEntityType(entityType); }
@Override public Repository<Entity> createRepository(EntityType entityType) { Repository<Entity> repo = delegate().createRepository(entityType); entityTypeRegistry.registerEntityType(entityType); return repo; }
PostgreSqlRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public Repository<Entity> createRepository(EntityType entityType) { Repository<Entity> repo = delegate().createRepository(entityType); entityTypeRegistry.registerEntityType(entityType); return repo; } }
PostgreSqlRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public Repository<Entity> createRepository(EntityType entityType) { Repository<Entity> repo = delegate().createRepository(entityType); entityTypeRegistry.registerEntityType(entityType); return repo; } PostgreSqlRepositoryCollectionDecorator(
      RepositoryCollection delegateRepositoryCollection, EntityTypeRegistry entityTypeRegistry); }
PostgreSqlRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public Repository<Entity> createRepository(EntityType entityType) { Repository<Entity> repo = delegate().createRepository(entityType); entityTypeRegistry.registerEntityType(entityType); return repo; } PostgreSqlRepositoryCollectionDecorator(
      RepositoryCollection delegateRepositoryCollection, EntityTypeRegistry entityTypeRegistry); @Override Repository<Entity> createRepository(EntityType entityType); @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); }
PostgreSqlRepositoryCollectionDecorator extends AbstractRepositoryCollectionDecorator { @Override public Repository<Entity> createRepository(EntityType entityType) { Repository<Entity> repo = delegate().createRepository(entityType); entityTypeRegistry.registerEntityType(entityType); return repo; } PostgreSqlRepositoryCollectionDecorator(
      RepositoryCollection delegateRepositoryCollection, EntityTypeRegistry entityTypeRegistry); @Override Repository<Entity> createRepository(EntityType entityType); @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);  }