use of com.google.refine.browsing.facets.TextSearchFacet.TextSearchFacetConfig in project OpenRefine by OpenRefine.
the class TextSearchFacetTests method serializeTextSearchFacet.
@Test
public void serializeTextSearchFacet() throws JsonParseException, JsonMappingException, IOException {
TextSearchFacetConfig config = ParsingUtilities.mapper.readValue(sensitiveConfigJson, TextSearchFacetConfig.class);
TextSearchFacet facet = config.apply(project);
TestUtils.isSerializedTo(facet, sensitiveFacetJson);
}
use of com.google.refine.browsing.facets.TextSearchFacet.TextSearchFacetConfig in project OpenRefine by OpenRefine.
the class TextSearchFacetTests method serializeTextSearchFacetConfig.
@Test
public void serializeTextSearchFacetConfig() throws JsonParseException, JsonMappingException, IOException {
TextSearchFacetConfig config = ParsingUtilities.mapper.readValue(sensitiveConfigJson, TextSearchFacetConfig.class);
TestUtils.isSerializedTo(config, sensitiveConfigJson);
}
Aggregations