if (arr != null) {
sw.println("return " + ret + ";");
} else {
- sw.println("return (a == null ? null : Arrays.asList(" + ret + "));");
+ sw.println("return Arrays.asList(" + ret + ");");
}
} else if (method.getReturnType().isEnum() != null) {
sw.println("return " + method.getReturnType().getQualifiedSourceName()
//THEN
assertEquals(0, retrievedUser.getPhones().size());
}
-
- public void test_return_null_when_list_is_not_specified() {
+
+ public void _test_return_null_when_list_is_not_specified() {
//GIVEN a JSON representation of a user
GUser user = GQ.create(GUser.class);
user.set("email", "a@b.com");