|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.utils.BambooTestUtils
public class BambooTestUtils
This class provides a collection of utility methods for use in the unit tests
Field Summary | |
---|---|
static java.lang.String |
NL
Convenience constant for new line |
static java.lang.String |
SEP
Convenice constant for file separators |
Method Summary | |
---|---|
static void |
assertCollectionContains(java.lang.String message,
java.util.Collection collection,
java.lang.Object value)
Ensures the value is contained in the collection. |
static void |
assertFormError(ErrorCollection errorCollection,
java.lang.String field,
java.lang.String errorMessage)
|
static java.io.InputStream |
getInputStream(java.lang.String fileName)
Obtains the given fileName as an input stream. |
static java.io.InputStream |
getInputStream(java.lang.String name,
java.lang.Class clazz)
Obtains the given fileName as an input stream. |
static java.io.InputStream |
getInputStream(java.lang.String name,
java.lang.Object object)
Obtains the given fileName as an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NL
public static final java.lang.String SEP
Method Detail |
---|
public static java.io.InputStream getInputStream(java.lang.String fileName)
fileName
- The file to read as a stream
public static java.io.InputStream getInputStream(@NotNull java.lang.String name, @NotNull java.lang.Object object)
name
- The resource nameobject
- This object's class is used to load resource
public static java.io.InputStream getInputStream(java.lang.String name, java.lang.Class clazz)
name
- The resource nameclazz
- The class to be used to load resource
public static void assertCollectionContains(java.lang.String message, java.util.Collection collection, java.lang.Object value)
message
- The message to display if the collection does not contain the valuecollection
- The collection we are searchingvalue
- The value we are looking for in the collectionpublic static void assertFormError(ErrorCollection errorCollection, java.lang.String field, java.lang.String errorMessage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |