From: <bh...@us...> - 2007-01-31 20:57:01
|
Revision: 2829 http://svn.sourceforge.net/cruisecontrol/?rev=2829&view=rev Author: bhamail Date: 2007-01-31 12:56:45 -0800 (Wed, 31 Jan 2007) Log Message: ----------- use case insensitive method to get env Path value in unit test: testPropertiesInProperties(), Windows has Path instead of PATH Modified Paths: -------------- trunk/cruisecontrol/main/test/net/sourceforge/cruisecontrol/CruiseControlConfigTest.java Modified: trunk/cruisecontrol/main/test/net/sourceforge/cruisecontrol/CruiseControlConfigTest.java =================================================================== --- trunk/cruisecontrol/main/test/net/sourceforge/cruisecontrol/CruiseControlConfigTest.java 2007-01-31 18:40:03 UTC (rev 2828) +++ trunk/cruisecontrol/main/test/net/sourceforge/cruisecontrol/CruiseControlConfigTest.java 2007-01-31 20:56:45 UTC (rev 2829) @@ -224,7 +224,7 @@ // test that we are capable of resolving properties in all property attributes public void testPropertiesInProperties() throws Exception { String targetProject = "propsinpropsdef"; - String expectedPropertyValue = new OSEnvironment().getVariable("PATH"); + String expectedPropertyValue = new OSEnvironment().getVariableIgnoreCase("PATH"); assertPropertyValue(targetProject, expectedPropertyValue); } @@ -300,8 +300,8 @@ assertEquals("default", testListener0.getString()); ListenerTestNestedPlugin nested = testListener0.getNested(); assertTrue(nested instanceof ListenerTestOtherNestedPlugin); - assertEquals("notshadowing", ((ListenerTestOtherNestedPlugin) nested).getString()); - assertEquals(null, ((ListenerTestOtherNestedPlugin) nested).getOtherString()); + assertEquals("notshadowing", nested.getString()); + assertEquals(null, nested.getOtherString()); assertEquals("otherother", ((ListenerTestOtherNestedPlugin) nested).getOtherOtherString()); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |