use of org.molgenis.data.meta.util.EntityTypeCopier in project molgenis by molgenis.
the class PostgreSqlRepositoryCollectionDecoratorTest method setUpBeforeMethod.
@BeforeMethod
public void setUpBeforeMethod() {
String entityTypeId = "entityTypeId";
entityType = mock(EntityType.class);
when(entityType.getEntityType()).thenReturn(mock(EntityType.class));
when(entityType.getId()).thenReturn(entityTypeId);
updatedEntityType = mock(EntityType.class);
repoCollection = mock(RepositoryCollection.class);
entityTypeRegistry = mock(EntityTypeRegistry.class);
EntityTypeCopier entityTypeCopier = mock(EntityTypeCopier.class);
when(entityTypeCopier.copy(entityType)).thenReturn(updatedEntityType);
attributeCopier = mock(AttributeCopier.class);
repoCollectionDecorator = new PostgreSqlRepositoryCollectionDecorator(repoCollection, entityTypeRegistry, entityTypeCopier, attributeCopier);
}
Aggregations