replaced system.out.println with a real assertion in the test.
This commit is contained in:
parent
cc334475b0
commit
970446e997
@ -264,7 +264,8 @@ public class DefaultTypeAdaptersTest extends TestCase {
|
|||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
props.setProperty("foo", "bar");
|
props.setProperty("foo", "bar");
|
||||||
String json = gson.toJson(props);
|
String json = gson.toJson(props);
|
||||||
System.out.println(json);
|
String expected = "{\"foo\":\"bar\"}";
|
||||||
|
assertEquals(expected, json);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testPropertiesDeserialization() {
|
public void testPropertiesDeserialization() {
|
||||||
|
Loading…
Reference in New Issue
Block a user