|
Struts example source code file (LoggerUtilsTest.java)
The Struts LoggerUtilsTest.java source codepackage com.opensymphony.xwork2.util.logging; import junit.framework.TestCase; public class LoggerUtilsTest extends TestCase { public void testFormatMessage() { assertEquals("foo", LoggerUtils.format("foo")); assertEquals("foo #", LoggerUtils.format("foo #")); assertEquals("#foo", LoggerUtils.format("#foo")); assertEquals("foo #1", LoggerUtils.format("foo #1")); 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(null, LoggerUtils.format(null)); assertEquals("", LoggerUtils.format("")); } } Other Struts examples (source code examples)Here is a short list of links related to this Struts LoggerUtilsTest.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.