Author: manik.surtani(a)jboss.com
Date: 2008-11-03 10:07:46 -0500 (Mon, 03 Nov 2008)
New Revision: 7055
Modified:
core/trunk/src/test/java/org/jboss/cache/config/parsing/CustomInterceptorsElementParserTest.java
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java
Log:
Fixed broken tests
Modified:
core/trunk/src/test/java/org/jboss/cache/config/parsing/CustomInterceptorsElementParserTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/config/parsing/CustomInterceptorsElementParserTest.java 2008-11-03
14:36:58 UTC (rev 7054)
+++
core/trunk/src/test/java/org/jboss/cache/config/parsing/CustomInterceptorsElementParserTest.java 2008-11-03
15:07:46 UTC (rev 7055)
@@ -51,9 +51,9 @@
String xml =
" <customInterceptors>\n" +
" <interceptor position=\"first\"
class=\"org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor\">\n"
+
- " <attribute
name=\"attrOne\">value1</attribute>\n" +
- " <attribute
name=\"attrTwo\">value2</attribute>\n" +
- " <attribute
name=\"attrThree\">value3</attribute>\n" +
+ " <property name=\"attrOne\"
value=\"value1\"></property>\n" +
+ " <property name=\"attrTwo\"
value=\"value2\"></property>\n" +
+ " <property name=\"attrThree\"
value=\"value3\"></property>\n" +
" </interceptor>\n" +
" <interceptor position=\"last\"
class=\"org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor\"/>\n"
+
" <interceptor index=\"3\"
class=\"org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor\"/>\n"
+
@@ -101,7 +101,7 @@
String xml =
" <customInterceptors>\n" +
" <interceptor position=\"first\"
class=\"org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor\">\n"
+
- " <attribute
name=\"nonexistenAttribute\">value3</attribute>\n" +
+ " <property name=\"nonexistenAttribute\"
value=\"value3\"></property>\n" +
" </interceptor>\n" +
" </customInterceptors>";
Element el = XmlConfigHelper.stringToElementInCoreNS(xml);
@@ -123,7 +123,7 @@
String xml =
" <customInterceptors>\n" +
" <interceptor position=\"first\"
class=\"org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor\">\n"
+
- " <attribute
name=\"notExists\">value1</attribute>\n" +
+ " <property name=\"notExists\"
value=\"value1\"></property>\n" +
" </interceptor>\n" +
" </customInterceptors>";
Element el = XmlConfigHelper.stringToElementInCoreNS(xml);
Modified:
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java 2008-11-03
14:36:58 UTC (rev 7054)
+++
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java 2008-11-03
15:07:46 UTC (rev 7055)
@@ -232,7 +232,7 @@
LRUAlgorithmConfig secondConfiguration = (LRUAlgorithmConfig)
second.getEvictionAlgorithmConfig();
assert secondConfiguration.getMaxAge() == -1;
assert secondConfiguration.getTimeToLive() == 1002;
- assert secondConfiguration.getMaxNodes() == 0;
+ assert secondConfiguration.getMaxNodes() == -1;
EvictionRegionConfig third = regionConfigs.get(1);
MRUAlgorithmConfig thirdConfiguration = (MRUAlgorithmConfig)
third.getEvictionAlgorithmConfig();
Show replies by date