junichi11 commented on a change in pull request #2173:
URL: https://github.com/apache/netbeans/pull/2173#discussion_r439696907
##########
File path:
php/php.composer/test/unit/src/org/netbeans/modules/php/composer/files/ComposerJsonTest.java
##########
@@ -75,4 +77,23 @@ public void testDefaultVendorDir() {
assertEquals(new File(getDataDir(), ComposerJson.DEFAULT_VENDOR_DIR),
composerJson.getVendorDir());
}
+ public void testScripts() {
+ ComposerJson composerJson = new
ComposerJson(FileUtil.toFileObject(getDataDir()), "composer-scripts.json");
+ assertTrue(composerJson.getFile().getAbsolutePath(),
composerJson.exists());
+ Set<String> scripts = composerJson.getScripts();
+ assertEquals(3, scripts.size());
+ Set<String> expectedScripts = new TreeSet<String>();
Review comment:
Please use the diamond operator.
----------------------------------------------------------------
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.
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