|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.util.ErrorCollectionAssert
public class ErrorCollectionAssert
Provides methods to help unit tests make assertions about ErrorCollection objects.
| Constructor Summary | |
|---|---|
ErrorCollectionAssert()
|
|
| Method Summary | |
|---|---|
static void |
assert1ErrorMessage(ErrorCollection errorCollection,
String expectedErrorMessage)
Asserts that the given ErrorCollection contains only the given error message. |
static void |
assert1FieldError(ErrorCollection errorCollection,
String fieldName,
String expectedErrorMessage)
Asserts that the given ErrorCollection contains only the given field-specific error. |
static void |
assertFieldError(ErrorCollection errorCollection,
String fieldName,
String expectedErrorMessage)
Asserts that the given ErrorCollection contains the given field-specific error. |
static void |
assertNoErrors(ErrorCollection errorCollection)
Asserts that the given ErrorCollection has no errors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorCollectionAssert()
| Method Detail |
|---|
public static void assert1ErrorMessage(ErrorCollection errorCollection,
String expectedErrorMessage)
errorCollection - ErrorCollection under test.expectedErrorMessage - The expected error message.
public static void assert1FieldError(ErrorCollection errorCollection,
String fieldName,
String expectedErrorMessage)
errorCollection - ErrorCollection under test.fieldName - The field name that we expected the error for.expectedErrorMessage - The expected error message.
public static void assertFieldError(ErrorCollection errorCollection,
String fieldName,
String expectedErrorMessage)
errorCollection - ErrorCollection under test.fieldName - The field name that we expected the error for.expectedErrorMessage - The expected error message.public static void assertNoErrors(ErrorCollection errorCollection)
errorCollection - ErrorCollection under test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||