mirror of
https://github.com/apache/struts.git
synced 2026-09-12 09:05:04 +00:00
Updates as stated in PR#20 comments - removed test method testDefaultMessageOverride.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user