You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/02/23 14:47:04 UTC

svn commit: r747018 - /commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java

Author: sebb
Date: Mon Feb 23 13:47:04 2009
New Revision: 747018

URL: http://svn.apache.org/viewvc?rev=747018&view=rev
Log:
Case-insensitive variables apply to all OSes

Modified:
    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/environment/EnvironmentUtilTest.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java?rev=747018&r1=747017&r2=747018&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 Feb 23 13:47:04 2009
@@ -93,8 +93,11 @@
         assertEquals("bar", procEnvironment.get("FOO"));
         assertEquals("bar", procEnvironment.get("Foo"));
         assertEquals("bar", procEnvironment.get("foo"));
-
-        // Check that case is preserved for values, and that values are replaced
+    }
+    
+    public void testCaseInsensitiveVariableLookup() throws Exception {
+        Map procEnvironment = EnvironmentUtils.getProcEnvironment();
+        // Check that case is preserved for values
         EnvironmentUtils.addVariableToEnvironment( procEnvironment, "foo=bAr" );
         assertEquals("bAr", procEnvironment.get("FOO"));
         assertEquals("bAr", procEnvironment.get("Foo"));