org.apache.tapestry.test
Class ScriptMessages
java.lang.Object
org.apache.tapestry.test.ScriptMessages
public class ScriptMessages
- extends java.lang.Object
Container of static methods to format logging and exception messages, used within the
org.apache.tapesty.test package (and a few sub-packages).
Technically, these are messages for the test package, and this class should be called
TestMessages ... but that's always a bad idea (it makes the class look like a JUnit test suite).
This class is public, not package private, because some related sub-packages make use of it as
well.
- Since:
- 4.0
- Author:
- Howard Lewis Ship
Field Summary |
protected static org.apache.hivemind.impl.MessageFormatter |
_formatter
|
Method Summary |
static java.lang.String |
expectedRegexpMissing(java.lang.String regexp,
org.apache.hivemind.Location location)
|
static java.lang.String |
expectedSubstringMissing(java.lang.String substring,
org.apache.hivemind.Location location)
|
static java.lang.String |
incorrectRegexpMatch(java.lang.String expectedMatch,
org.apache.hivemind.Location location,
java.lang.String actualMatch)
|
static java.lang.String |
incorrectRegexpMatchCount(java.lang.String pattern,
org.apache.hivemind.Location location,
int expectedCount,
int actualCount)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_formatter
protected static org.apache.hivemind.impl.MessageFormatter _formatter
ScriptMessages
public ScriptMessages()
expectedSubstringMissing
public static java.lang.String expectedSubstringMissing(java.lang.String substring,
org.apache.hivemind.Location location)
expectedRegexpMissing
public static java.lang.String expectedRegexpMissing(java.lang.String regexp,
org.apache.hivemind.Location location)
incorrectRegexpMatch
public static java.lang.String incorrectRegexpMatch(java.lang.String expectedMatch,
org.apache.hivemind.Location location,
java.lang.String actualMatch)
incorrectRegexpMatchCount
public static java.lang.String incorrectRegexpMatchCount(java.lang.String pattern,
org.apache.hivemind.Location location,
int expectedCount,
int actualCount)