use of com.google.refine.browsing.facets.Facet in project OpenRefine by OpenRefine.
the class ListFacetTests method testSelectedEmptyChoice.
@Test
public void testSelectedEmptyChoice() throws IOException {
Project project = createCSVProject("Column A\n" + "a\n" + "c\n" + "e");
Engine engine = new Engine(project);
ListFacetConfig facetConfig = ParsingUtilities.mapper.readValue(jsonConfig, ListFacetConfig.class);
Facet facet = facetConfig.apply(project);
facet.computeChoices(project, engine.getAllFilteredRows());
TestUtils.isSerializedTo(facet, selectedEmptyChoiceFacet);
}
Aggregations