Search in sources :

Example 1 with TextSearchFacetConfig

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);
}
Also used : TextSearchFacetConfig(com.google.refine.browsing.facets.TextSearchFacet.TextSearchFacetConfig) TextSearchFacet(com.google.refine.browsing.facets.TextSearchFacet) RefineTest(com.google.refine.RefineTest) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest)

Example 2 with TextSearchFacetConfig

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);
}
Also used : TextSearchFacetConfig(com.google.refine.browsing.facets.TextSearchFacet.TextSearchFacetConfig) RefineTest(com.google.refine.RefineTest) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

RefineTest (com.google.refine.RefineTest)2 TextSearchFacetConfig (com.google.refine.browsing.facets.TextSearchFacet.TextSearchFacetConfig)2 BeforeTest (org.testng.annotations.BeforeTest)2 Test (org.testng.annotations.Test)2 TextSearchFacet (com.google.refine.browsing.facets.TextSearchFacet)1