use of nl.knaw.huygens.timbuctoo.search.description.FacetDescription in project timbuctoo by HuygensING.
the class FacetDescriptionFactoryTest method createDatableRangeFacetDescriptionWithARelationCreatesARelatedDatableRangeFacetDescription.
@Test
public void createDatableRangeFacetDescriptionWithARelationCreatesARelatedDatableRangeFacetDescription() {
FacetDescription description = instance.createDatableRangeFacetDescription("facetName", "propertyName", "relationName");
assertThat(description, is(instanceOf(RelatedDatableRangeFacetDescription.class)));
}
use of nl.knaw.huygens.timbuctoo.search.description.FacetDescription in project timbuctoo by HuygensING.
the class FacetDescriptionFactoryTest method createListFacetDescriptionWithARelationLetsThePropertyParserFactoryCreateAParser.
@Test
public void createListFacetDescriptionWithARelationLetsThePropertyParserFactoryCreateAParser() {
FacetDescription description = instance.createListFacetDescription("facetName", String.class, "propertyName", "relation");
verify(parserFactory).getParser(String.class);
}
use of nl.knaw.huygens.timbuctoo.search.description.FacetDescription in project timbuctoo by HuygensING.
the class FacetDescriptionFactoryTest method createDatableRangeFacetDescriptionCreatesADatableRangeFacetDescription.
@Test
public void createDatableRangeFacetDescriptionCreatesADatableRangeFacetDescription() {
FacetDescription description = instance.createDatableRangeFacetDescription("facetName", "propertyName");
assertThat(description, is(instanceOf(DatableRangeFacetDescription.class)));
}
use of nl.knaw.huygens.timbuctoo.search.description.FacetDescription in project timbuctoo by HuygensING.
the class FacetDescriptionFactoryTest method createListFacetDescriptionWithARelationCreatesADerivedListFacetDescription.
@Test
public void createListFacetDescriptionWithARelationCreatesADerivedListFacetDescription() {
PropertyParser parser = mock(PropertyParser.class);
FacetDescription description = instance.createListFacetDescription("facetName", parser, "propertyName", "relation");
assertThat(description, is(instanceOf(RelatedListFacetDescription.class)));
}
use of nl.knaw.huygens.timbuctoo.search.description.FacetDescription in project timbuctoo by HuygensING.
the class FacetDescriptionFactoryTest method createKeywordFacetDescriptionCreatesADerivedListFacetDescription.
@Test
public void createKeywordFacetDescriptionCreatesADerivedListFacetDescription() {
FacetDescription description = instance.createKeywordDescription("facetName", "relationName", "ww");
assertThat(description, is(instanceOf(RelatedListFacetDescription.class)));
verify(parserFactory).getParser(String.class);
}
Aggregations