commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgoes...@apache.org
Subject svn commit: r949871 - in /commons/proper/exec/trunk/src/test/java/org/apache/commons/exec: CommandLineTest.java environment/EnvironmentUtilTest.java
Date Mon, 31 May 2010 21:34:05 GMT
Author: sgoeschl
Date: Mon May 31 21:34:04 2010
New Revision: 949871

URL: http://svn.apache.org/viewvc?rev=949871&view=rev
Log:
Making a few changes to keep my IntelliJ happy ...

Modified:
    commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java
    commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java

Modified: commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java?rev=949871&r1=949870&r2=949871&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java (original)
+++ commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/CommandLineTest.java Mon
May 31 21:34:04 2010
@@ -304,7 +304,7 @@ public class CommandLineTest extends Tes
      */
     public void testCommandLineParsingWithExpansion1() {
 
-        CommandLine cmdl = null;
+        CommandLine cmdl;
 
         HashMap substitutionMap = new HashMap();
         substitutionMap.put("JAVA_HOME", "/usr/local/java");
@@ -404,7 +404,9 @@ public class CommandLineTest extends Tes
         
     }
     /**
-     * Test the toString() method
+     * Test the toString() method.
+     *
+     * @throws Exception the test failed
      */
     public void testToString() throws Exception {
         CommandLine cmdl;

Modified: commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java?rev=949871&r1=949870&r2=949871&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java
(original)
+++ commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java
Mon May 31 21:34:04 2010
@@ -52,6 +52,8 @@ public class EnvironmentUtilTest extends
      * Test to access the environment variables of the current
      * process. Please note that this test does not run on
      * java-gjc.
+     *
+     * @throws IOException the test failed
      */
     public void testGetProcEnvironment() throws IOException {
         Map procEnvironment = EnvironmentUtils.getProcEnvironment();
@@ -70,6 +72,8 @@ public class EnvironmentUtilTest extends
      * On Windows platforms test that accessing environment variables
      * can be done in a case-insensitive way, e.g. "PATH", "Path" and
      * "path" would reference the same environment variable.
+     *
+     * @throws IOException the test failed
      */
     public void testGetProcEnvironmentCaseInsensitiveLookup() throws IOException {
         // run tests only on windows platforms
@@ -99,6 +103,8 @@ public class EnvironmentUtilTest extends
      * on the operating system but the values of the environment variable
      * are always case-sensitive. So make sure that this assumption holds
      * on all operating systems.
+     *
+     * @throws Exception the test failed
      */
     public void testCaseInsensitiveVariableLookup() throws Exception {
         Map procEnvironment = EnvironmentUtils.getProcEnvironment();



Mime
View raw message