@Test public void testJsonSerializationNumbers() { ContainsConditionBuilder builder = new ContainsConditionBuilder("field", 1, 2, -3).boost(0.7); testJsonSerialization(builder, "{type:\"contains\",field:\"field\",values:[1,2,-3],boost:0.7}"); }
@Test public void testJsonSerializationStrings() { ContainsConditionBuilder builder = new ContainsConditionBuilder("field", "a", "b").boost(0.7); testJsonSerialization( builder, "{type:\"contains\",field:\"field\",values:[\"a\",\"b\"],boost:0.7}"); }