commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r747014 - /commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java
Date Mon, 23 Feb 2009 13:38:35 GMT
Author: sebb
Date: Mon Feb 23 13:38:34 2009
New Revision: 747014

URL: http://svn.apache.org/viewvc?rev=747014&view=rev
Log:
Check that case is preserved for values, and that values are replaced

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=747014&r1=747013&r2=747014&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:38:34 2009
@@ -93,6 +93,12 @@
         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
+        EnvironmentUtils.addVariableToEnvironment( procEnvironment, "foo=bAr" );
+        assertEquals("bAr", procEnvironment.get("FOO"));
+        assertEquals("bAr", procEnvironment.get("Foo"));
+        assertEquals("bAr", procEnvironment.get("foo"));
     }
 
 }



Mime
View raw message