Updates as stated in PR#20 comments - removed test method testDefaultMessageOverride.

This commit is contained in:
Luigi Fugaro
2014-07-30 14:29:47 +02:00
parent da9afaf84e
commit 9254aaaefe
@@ -133,6 +133,11 @@ public class LocalizedTextUtilTest extends XWorkTestCase {
assertEquals("Error during Action invocation", message);
}
/*
Stated that property's management does not care about ordering,
in fact it's held by a Set instead of List,
you cannot override a previous bundle, thus the test is wrong.
public void testDefaultMessageOverride() throws Exception {
String message = LocalizedTextUtil.findDefaultText(XWorkMessages.ACTION_EXECUTION_ERROR, Locale.getDefault());
assertEquals("Error during Action invocation", message);
@@ -142,6 +147,7 @@ public class LocalizedTextUtilTest extends XWorkTestCase {
message = LocalizedTextUtil.findDefaultText(XWorkMessages.ACTION_EXECUTION_ERROR, Locale.getDefault());
assertEquals("Testing resource bundle override", message);
}
*/
public void testFindTextInChildProperty() throws Exception {
ModelDriven action = new ModelDrivenAction2();