<properties>
- <!-- valid emulations are FF17 IE8 IE9 Chrome, but only FF17 works. -->
- <gwt.test.htmlunit>FF17</gwt.test.htmlunit>
+ <!-- valid emulations are FF17 IE8 IE9 Chrome, but only Chrome works. -->
+ <gwt.test.htmlunit>Chrome</gwt.test.htmlunit>
<gwt.test.default>-ea -out ${basedir}/target/gwt-junit -checkAssertions</gwt.test.default>
<gwt.args />
</properties>
<profile>
<!-- example:
$ mvn clean test -Ptest-prod
- $ mvn clean test -Ptest-prod -Dgwt.test.htmlunit=FF17
+ $ mvn clean test -Ptest-prod -Dgwt.test.htmlunit=Chrome
-->
<id>test-prod</id>
<properties>
if (arr != null) {
sw.println("return " + ret + ";");
} else {
- sw.println("return Arrays.asList(" + ret + ");");
+ sw.println("return a == null ? null : Arrays.asList(" + ret + ");");
}
} else if (method.getReturnType().isEnum() != null) {
sw.println("return " + method.getReturnType().getQualifiedSourceName()
//WHEN fetching that user
GUser retrievedUser = GQ.create(GUser.class);
retrievedUser.parse(json, true);
-
+
//THEN
List<String> phones = retrievedUser.getPhones();
assertNull(phones);
}
-}
\ No newline at end of file
+}