public final class TestUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
assertIsEmpty(java.util.Collection objs)
Test that a collection is not null or empty.
|
static void |
assertNoExceptionsOnCollectionIteration(java.util.Collection objs)
Test that collection iteration does not generate exceptions.
|
static void |
assertNoExceptionsOnGetters(java.lang.Object obj)
Test access to the properties of an object through its accessors.
|
static void |
assertNotEmpty(java.util.Collection objs)
Test that a collection is not null or empty.
|
static boolean |
streamContentEquals(java.io.InputStream s1,
java.io.InputStream s2)
Checks if both InputStreams have the same content and length.
|
public static void assertIsEmpty(java.util.Collection objs) throws java.lang.Exception
objs
- the collection of objectsjava.lang.Exception
- any exceptionpublic static void assertNoExceptionsOnCollectionIteration(java.util.Collection objs) throws java.lang.Exception
objs
- the collection of objectsjava.lang.Exception
- any exceptionpublic static void assertNoExceptionsOnGetters(java.lang.Object obj) throws java.lang.Exception
obj
- the object to testjava.lang.Exception
- any exceptionpublic static void assertNotEmpty(java.util.Collection objs) throws java.lang.Exception
objs
- the collection of objectsjava.lang.Exception
- any exceptionpublic static boolean streamContentEquals(java.io.InputStream s1, java.io.InputStream s2) throws java.io.IOException
s1
- the s1s2
- the s2java.io.IOException
- Signals that an I/O exception has occurred.