EntityParameterValue extends AbstractParameterValue { @Override public String getQueryString() { return "<" + EntityPropertiesUtils.getIdentifier(value, metamodelProvider.getMetamodel()) + ">"; } EntityParameterValue(Object value, MetamodelProvider metamodelProvider); @Override Object getValue(); @Override String getQueryString();  }
@Test void getQueryStringReturnsEntityIdentifierAsQueryResource() { when(metamodelProvider.isEntityType(OWLClassA.class)).thenReturn(true); final OWLClassA value = Generators.generateOwlClassAInstance(); final EntityParameterValue sut = new EntityParameterValue(value, metamodelProvider); assertEquals("<" + value.getUri() + ">", sut.getQueryString()); }
@Test void getQueryStringReturnsStringEntityIdentifierAsQueryResource() { when(metamodelProvider.isEntityType(OWLClassM.class)).thenReturn(true); final OWLClassM value = new OWLClassM(); value.setKey("http: final EntityParameterValue sut = new EntityParameterValue(value, metamodelProvider); assertEquals("<" + value.getKey() + ">", sut.getQueryString()); }