@Test public void shouldSerializeFalseToCustomFalseUsingCustomBooleanFormat() throws Exception { Serializer toTest = newToTest(); OutputStream out = new ByteArrayOutputStream(); toTest.serialize(false, charset, out); assertEquals("0", out.toString()); }
public String serialize(Boolean value, Charset charset) { return value ? trueString : falseString; }
BooleanSerializer extends StringSerializer<Boolean> { public String serialize(Boolean value, Charset charset) { return value ? trueString : falseString; } }
BooleanSerializer extends StringSerializer<Boolean> { public String serialize(Boolean value, Charset charset) { return value ? trueString : falseString; } BooleanSerializer(CRestConfig crestConfig); }
BooleanSerializer extends StringSerializer<Boolean> { public String serialize(Boolean value, Charset charset) { return value ? trueString : falseString; } BooleanSerializer(CRestConfig crestConfig); String serialize(Boolean value, Charset charset); }
BooleanSerializer extends StringSerializer<Boolean> { public String serialize(Boolean value, Charset charset) { return value ? trueString : falseString; } BooleanSerializer(CRestConfig crestConfig); String serialize(Boolean value, Charset charset);  }