@Test public void ensureAllInteractTypesAreSupported() throws TermLookupServiceException { InteractTypeMapper interactTypeMapper = new InteractTypeMapperFactoryForRO().create(); InteractType[] interactionTypes = InteractType.values(); for (InteractType value : interactionTypes) { if (StringUtils.equals(PropertyAndValueDictionary.NO_MATCH, value.getIRI())) { assertTrue("[" + value.getLabel() + "] should be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getLabel())); assertTrue("[" + value.getIRI() + "] should be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getIRI())); } else { InteractType interactTypeByName = interactTypeMapper.getInteractType(value.getLabel()); InteractType interactTypeById = interactTypeMapper.getInteractType(value.getIRI()); InteractType expectedType = InteractType.typeOf(value.getIRI()); assertThat(interactTypeById, is(expectedType)); assertThat(interactTypeByName, is(expectedType)); assertFalse("[" + value.getLabel() + "] should not be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getLabel())); assertFalse("[" + value.getIRI() + "] should not be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getIRI())); } } }
@Override public InteractTypeMapper create() throws TermLookupServiceException { return new InteractTypeMapperImpl( getTermIgnoredServiceRO(), getTermLookupServiceRO()); }
InteractTypeMapperFactoryForRO implements InteractTypeMapperFactory { @Override public InteractTypeMapper create() throws TermLookupServiceException { return new InteractTypeMapperImpl( getTermIgnoredServiceRO(), getTermLookupServiceRO()); } }
InteractTypeMapperFactoryForRO implements InteractTypeMapperFactory { @Override public InteractTypeMapper create() throws TermLookupServiceException { return new InteractTypeMapperImpl( getTermIgnoredServiceRO(), getTermLookupServiceRO()); }  }
InteractTypeMapperFactoryForRO implements InteractTypeMapperFactory { @Override public InteractTypeMapper create() throws TermLookupServiceException { return new InteractTypeMapperImpl( getTermIgnoredServiceRO(), getTermLookupServiceRO()); }  @Override InteractTypeMapper create(); }
InteractTypeMapperFactoryForRO implements InteractTypeMapperFactory { @Override public InteractTypeMapper create() throws TermLookupServiceException { return new InteractTypeMapperImpl( getTermIgnoredServiceRO(), getTermLookupServiceRO()); }  @Override InteractTypeMapper create(); static final String IGNORED_LIST_DEFAULT; static final String SUPPORTED_INTERACTION_TYPES; static final String IGNORED_INTERACTION_TYPE_COLUMN_NAME; }