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}");
}
Aggregations