lbownik commented on code in PR #5535:
URL: https://github.com/apache/netbeans/pull/5535#discussion_r1124474375
##########
extide/gradle/test/unit/src/org/netbeans/modules/gradle/loaders/ExtensionPropertiesExtractorTest.java:
##########
@@ -164,6 +171,25 @@ public void testMapExtensionProperty() throws Exception {
item = support.get(prop, "test", null);
assertNotNull(item);
}
+
+ public void testAddedListExtensionProperty() throws Exception {
+ Project p = makeProject("buildprops/micronaut");
+ BuildPropertiesSupport support = BuildPropertiesSupport.get(p);
+ assertNotNull(support);
+
+ BuildPropertiesSupport.Property prop;
+
+
+ prop = support.findExtensionProperty("graalvmNative",
"binaries.main.buildArgs");
+ assertEquals(BuildPropertiesSupport.PropertyKind.LIST, prop.getKind());
+ Iterable<BuildPropertiesSupport.Property> it = support.items(prop,
null);
+ assertNotNull(it);
Review Comment:
this seems redundant, next line will throw NPE if it == null and the test
will fail
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists