use of nl.knaw.huygens.timbuctoo.search.description.PropertyParser in project timbuctoo by HuygensING.
the class PropertyDescriptorFactoryTest method getDerivedWithSeparatorReturnsADerivedPropertyDescriptor.
@Test
public void getDerivedWithSeparatorReturnsADerivedPropertyDescriptor() {
PropertyParser parser = mock(PropertyParser.class);
PropertyDescriptor descriptor = instance.getDerivedWithSeparator("relationName", "propertyName", parser, "accepted", "--");
assertThat(descriptor, is(instanceOf(RelatedPropertyDescriptor.class)));
}
use of nl.knaw.huygens.timbuctoo.search.description.PropertyParser in project timbuctoo by HuygensING.
the class PropertyParserFactoryTest method getParserReturnsAGenderPropertyParserForGender.
@Test
public void getParserReturnsAGenderPropertyParserForGender() {
PropertyParser parser = instance.getParser(Gender.class);
assertThat(parser, is(instanceOf(GenderPropertyParser.class)));
}
use of nl.knaw.huygens.timbuctoo.search.description.PropertyParser in project timbuctoo by HuygensING.
the class PropertyParserFactoryTest method getParserReturnsAPersonNamesDefaultPropertyParserForPersonNames.
@Test
public void getParserReturnsAPersonNamesDefaultPropertyParserForPersonNames() {
PropertyParser parser = instance.getParser(PersonNames.class);
assertThat(parser, is(instanceOf(PersonNamesDefaultNamePropertyParser.class)));
}
use of nl.knaw.huygens.timbuctoo.search.description.PropertyParser in project timbuctoo by HuygensING.
the class FacetDescriptionFactoryTest method createListFacetDescriptionCreatesAListFacetDescription.
@Test
public void createListFacetDescriptionCreatesAListFacetDescription() {
PropertyParser parser = mock(PropertyParser.class);
FacetDescription description = instance.createListFacetDescription("facetName", parser, "propertyName");
assertThat(description, is(instanceOf(ListFacetDescription.class)));
}
use of nl.knaw.huygens.timbuctoo.search.description.PropertyParser in project timbuctoo by HuygensING.
the class FacetDescriptionFactoryTest method createListFacetDescriptionWithMultipleRelationsCreatesADerivedListFacetDescription.
@Test
public void createListFacetDescriptionWithMultipleRelationsCreatesADerivedListFacetDescription() {
PropertyParser parser = mock(PropertyParser.class);
FacetDescription description = instance.createListFacetDescription("facetName", parser, "propertyName", "relation", "relation2");
assertThat(description, is(instanceOf(RelatedListFacetDescription.class)));
}
Aggregations