@Test void testGetCompatibleEntityTypes() { when(metaDataService.getEntityTypes()).thenReturn(Stream.of(hopMetaData, geneMetaData)); Set<Entity> compatibleEntityTypes = mappingService.getCompatibleEntityTypes(hopMetaData).collect(toSet()); assertEquals(newHashSet(hopMetaData), compatibleEntityTypes); }
public Stream<EntityType> getCompatibleEntityTypes(EntityType target) { return dataService .getMeta() .getEntityTypes() .filter(candidate -> !candidate.isAbstract()) .filter(isCompatible(target)); }
MappingServiceImpl implements MappingService { public Stream<EntityType> getCompatibleEntityTypes(EntityType target) { return dataService .getMeta() .getEntityTypes() .filter(candidate -> !candidate.isAbstract()) .filter(isCompatible(target)); } }
MappingServiceImpl implements MappingService { public Stream<EntityType> getCompatibleEntityTypes(EntityType target) { return dataService .getMeta() .getEntityTypes() .filter(candidate -> !candidate.isAbstract()) .filter(isCompatible(target)); } MappingServiceImpl(
      DataService dataService,
      AlgorithmService algorithmService,
      MappingProjectRepository mappingProjectRepository,
      PermissionSystemService permissionSystemService,
      AttributeFactory attrMetaFactory,
      EntityManager entityManager); }
MappingServiceImpl implements MappingService { public Stream<EntityType> getCompatibleEntityTypes(EntityType target) { return dataService .getMeta() .getEntityTypes() .filter(candidate -> !candidate.isAbstract()) .filter(isCompatible(target)); } MappingServiceImpl(
      DataService dataService,
      AlgorithmService algorithmService,
      MappingProjectRepository mappingProjectRepository,
      PermissionSystemService permissionSystemService,
      AttributeFactory attrMetaFactory,
      EntityManager entityManager); @Override @Transactional MappingProject addMappingProject(String projectName, String target, int depth); @Override @Transactional void deleteMappingProject(String mappingProjectId); @Override @Transactional MappingProject cloneMappingProject(String mappingProjectId); @Override @Transactional MappingProject cloneMappingProject(
      String mappingProjectId, String clonedMappingProjectName); @Override List<MappingProject> getAllMappingProjects(); @Override @Transactional void updateMappingProject(MappingProject mappingProject); @Override MappingProject getMappingProject(String identifier); @Override @Transactional long applyMappings(
      String mappingProjectId,
      String entityTypeId,
      Boolean addSourceAttribute,
      String packageId,
      String label,
      Progress progress); Stream<EntityType> getCompatibleEntityTypes(EntityType target); }
MappingServiceImpl implements MappingService { public Stream<EntityType> getCompatibleEntityTypes(EntityType target) { return dataService .getMeta() .getEntityTypes() .filter(candidate -> !candidate.isAbstract()) .filter(isCompatible(target)); } MappingServiceImpl(
      DataService dataService,
      AlgorithmService algorithmService,
      MappingProjectRepository mappingProjectRepository,
      PermissionSystemService permissionSystemService,
      AttributeFactory attrMetaFactory,
      EntityManager entityManager); @Override @Transactional MappingProject addMappingProject(String projectName, String target, int depth); @Override @Transactional void deleteMappingProject(String mappingProjectId); @Override @Transactional MappingProject cloneMappingProject(String mappingProjectId); @Override @Transactional MappingProject cloneMappingProject(
      String mappingProjectId, String clonedMappingProjectName); @Override List<MappingProject> getAllMappingProjects(); @Override @Transactional void updateMappingProject(MappingProject mappingProject); @Override MappingProject getMappingProject(String identifier); @Override @Transactional long applyMappings(
      String mappingProjectId,
      String entityTypeId,
      Boolean addSourceAttribute,
      String packageId,
      String label,
      Progress progress); Stream<EntityType> getCompatibleEntityTypes(EntityType target); static final int MAPPING_BATCH_SIZE; }