You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/12/26 10:16:39 UTC

[GitHub] [commons-vfs] grimreaper opened a new pull request #76: [commons-vfs] clean up tests and simplify assertions

grimreaper opened a new pull request #76: [commons-vfs] clean up tests and simplify assertions
URL: https://github.com/apache/commons-vfs/pull/76
 
 
   This is a mostly mechanical change to tests such that it is easier to
   convert from junit 3 to junit 4

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [commons-vfs] grimreaper commented on a change in pull request #76: [commons-vfs] clean up tests and simplify assertions

Posted by GitBox <gi...@apache.org>.
grimreaper commented on a change in pull request #76: [commons-vfs] clean up tests and simplify assertions
URL: https://github.com/apache/commons-vfs/pull/76#discussion_r361853675
 
 

 ##########
 File path: commons-vfs2/src/test/java/org/apache/commons/AbstractVfsTestCase.java
 ##########
 @@ -136,7 +118,7 @@ public static File getTestDirectory(final String name) {
     /**
      * Makes a file canonical
      */
-    public static File getCanonicalFile(final File file) {
+    private static File getCanonicalFile(final File file) {
 
 Review comment:
   I find it makes it easier to detect unused code along with all the other typical reasons to default to private. That said I don't feel strongly about this so I'll just revert.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [commons-vfs] garydgregory commented on a change in pull request #76: [commons-vfs] clean up tests and simplify assertions

Posted by GitBox <gi...@apache.org>.
garydgregory commented on a change in pull request #76: [commons-vfs] clean up tests and simplify assertions
URL: https://github.com/apache/commons-vfs/pull/76#discussion_r361853398
 
 

 ##########
 File path: commons-vfs2/src/test/java/org/apache/commons/AbstractVfsTestCase.java
 ##########
 @@ -136,7 +118,7 @@ public static File getTestDirectory(final String name) {
     /**
      * Makes a file canonical
      */
-    public static File getCanonicalFile(final File file) {
+    private static File getCanonicalFile(final File file) {
 
 Review comment:
   There is no need to hide methods in tests, it just makes reusing code more difficult when using discovery features in IDEs like CTRL-space for method names.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [commons-vfs] garydgregory merged pull request #76: [commons-vfs] clean up tests and simplify assertions

Posted by GitBox <gi...@apache.org>.
garydgregory merged pull request #76: [commons-vfs] clean up tests and simplify assertions
URL: https://github.com/apache/commons-vfs/pull/76
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services