@Test void testGetEntityTypes() { ImmutableCollection<EntityType> entityTypes = ImmutableList.of(); ParsedMetaData parsedMetaData = mock(ParsedMetaData.class); when(parsedMetaData.getEntities()).thenReturn(entityTypes).getMock(); when(emxImportJob.getParsedMetaData()).thenReturn(parsedMetaData); assertEquals(emptyList(), emxDataProvider.getEntityTypes().collect(toList())); }
@Override public Stream<EntityType> getEntityTypes() { return job.getParsedMetaData().getEntities().stream(); }
EmxDataProvider implements DataProvider { @Override public Stream<EntityType> getEntityTypes() { return job.getParsedMetaData().getEntities().stream(); } }
EmxDataProvider implements DataProvider { @Override public Stream<EntityType> getEntityTypes() { return job.getParsedMetaData().getEntities().stream(); } EmxDataProvider(EmxImportJob job, EntityManager entityManager); }
EmxDataProvider implements DataProvider { @Override public Stream<EntityType> getEntityTypes() { return job.getParsedMetaData().getEntities().stream(); } EmxDataProvider(EmxImportJob job, EntityManager entityManager); @Override Stream<EntityType> getEntityTypes(); @Override boolean hasEntities(EntityType entityType); @Override Stream<Entity> getEntities(EntityType entityType); }
EmxDataProvider implements DataProvider { @Override public Stream<EntityType> getEntityTypes() { return job.getParsedMetaData().getEntities().stream(); } EmxDataProvider(EmxImportJob job, EntityManager entityManager); @Override Stream<EntityType> getEntityTypes(); @Override boolean hasEntities(EntityType entityType); @Override Stream<Entity> getEntities(EntityType entityType);  }