testing expression enclosed by characters without space

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1492574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christian Grobmeier
2013-06-13 08:51:05 +00:00
parent 508dd0b6a1
commit 0f5a74b983
@@ -13,7 +13,9 @@ public class LoggerUtilsTest extends TestCase {
assertEquals("foo bob", LoggerUtils.format("foo #0", "bob"));
assertEquals("foo bob joe", LoggerUtils.format("foo #0 #1", "bob", "joe"));
assertEquals("foo bob joe #8", LoggerUtils.format("foo #0 #1 #8", "bob", "joe"));
assertEquals("foo (bob/ally)", LoggerUtils.format("foo (#0/#1)", "bob", "ally"));
assertEquals("foo (bobally)", LoggerUtils.format("foo (#0#1)", "bob", "ally"));
assertEquals(null, LoggerUtils.format(null));
assertEquals("", LoggerUtils.format(""));