Author: midon
Date: Fri Oct 10 13:36:42 2008
New Revision: 703571
URL: http://svn.apache.org/viewvc?rev=703571&view=rev
Log:
Fix a test: HierarchicalProperties does not order the files anymore.
It's the caller's responsability now.
Modified:
ode/trunk/utils/src/test/java/org/apache/ode/utils/HierarchicalPropertiesTest.java
Modified:
ode/trunk/utils/src/test/java/org/apache/ode/utils/HierarchicalPropertiesTest.java
URL:
http://svn.apache.org/viewvc/ode/trunk/utils/src/test/java/org/apache/ode/utils/HierarchicalPropertiesTest.java?rev=703571&r1=703570&r2=703571&view=diff
==============================================================================
---
ode/trunk/utils/src/test/java/org/apache/ode/utils/HierarchicalPropertiesTest.java
(original)
+++
ode/trunk/utils/src/test/java/org/apache/ode/utils/HierarchicalPropertiesTest.java
Fri Oct 10 13:36:42 2008
@@ -48,7 +48,8 @@
assertEquals(msg, "40000", hp.getProperty("http://foo.com",
"film-service", "timeout"));
assertEquals(msg, "hi!", hp.getProperty("http://hello.com",
"a_service", "worldproperty"));
assertEquals(msg, "4", hp.getProperty("a_namespace_with_no_alias",
"a_service", "poolsize"));
- assertEquals("If the same property is set by two different files, the
order of precedence should be the alphabetical order.", "60000",
hp.getProperty("http://foo.com", "film-service", "port-of-cannes", "timeout"));
+ assertEquals("If the same property is set by two different files, the
last loaded file must take precedence", "50000",
hp.getProperty("http://foo.com", "film-service", "port-of-cannes", "timeout"));
+
assertEquals("The prefix could be use without interfering", "so green
or red?",
hp.getProperty("ode.a.property.beginning.with.the.prefix.but.no.service"));
}