From 9254aaaefefbf0cc523c1bd710b60b9b815825e2 Mon Sep 17 00:00:00 2001 From: Luigi Fugaro Date: Wed, 30 Jul 2014 14:29:47 +0200 Subject: [PATCH] Updates as stated in PR#20 comments - removed test method testDefaultMessageOverride. --- .../com/opensymphony/xwork2/util/LocalizedTextUtilTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xwork-core/src/test/java/com/opensymphony/xwork2/util/LocalizedTextUtilTest.java b/xwork-core/src/test/java/com/opensymphony/xwork2/util/LocalizedTextUtilTest.java index bac41ba41..22982973d 100644 --- a/xwork-core/src/test/java/com/opensymphony/xwork2/util/LocalizedTextUtilTest.java +++ b/xwork-core/src/test/java/com/opensymphony/xwork2/util/LocalizedTextUtilTest.java @@ -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();