Search in sources :

Example 1 with NominalFacetChoice

use of com.google.refine.browsing.facets.NominalFacetChoice in project OpenRefine by OpenRefine.

the class NominalFacetChoiceTests method serializeNominalFacetChoice.

@Test
public void serializeNominalFacetChoice() {
    DecoratedValue value = new DecoratedValue("some string", "some string");
    NominalFacetChoice choice = new NominalFacetChoice(value);
    choice.count = 3;
    choice.selected = true;
    TestUtils.isSerializedTo(choice, "{" + "\"v\":" + "   {\"v\":\"some string\"," + "    \"l\":\"some string\"}," + "\"c\":3," + "\"s\":true}");
}
Also used : NominalFacetChoice(com.google.refine.browsing.facets.NominalFacetChoice) DecoratedValue(com.google.refine.browsing.DecoratedValue) Test(org.testng.annotations.Test)

Aggregations

DecoratedValue (com.google.refine.browsing.DecoratedValue)1 NominalFacetChoice (com.google.refine.browsing.facets.NominalFacetChoice)1 Test (org.testng.annotations.Test)1