org.apache.tapestry.test
Class ScriptMessages
java.lang.Object
org.apache.tapestry.test.ScriptMessages
- public final 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
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)
|
static java.lang.String |
invalidIntAttribute(java.lang.String attributeName,
java.lang.String elementName,
org.apache.hivemind.Location location,
java.lang.String attributeValue)
|
static java.lang.String |
missingRequiredAttribute(java.lang.String attributeName,
java.lang.String elementName)
|
static java.lang.String |
unableToInstantiate(java.lang.Class abstractClass,
java.lang.Throwable cause)
|
static java.lang.String |
unexpectedAttributeInElement(java.lang.String attributeName,
java.lang.String elementName)
|
static java.lang.String |
wrongTypeForEnhancement(java.lang.Class type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
unexpectedAttributeInElement
public static java.lang.String unexpectedAttributeInElement(java.lang.String attributeName,
java.lang.String elementName)
missingRequiredAttribute
public static java.lang.String missingRequiredAttribute(java.lang.String attributeName,
java.lang.String elementName)
invalidIntAttribute
public static java.lang.String invalidIntAttribute(java.lang.String attributeName,
java.lang.String elementName,
org.apache.hivemind.Location location,
java.lang.String attributeValue)
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)
wrongTypeForEnhancement
public static java.lang.String wrongTypeForEnhancement(java.lang.Class type)
unableToInstantiate
public static java.lang.String unableToInstantiate(java.lang.Class abstractClass,
java.lang.Throwable cause)