Package org.apache.ofbiz.base.test
Class GenericTestCaseBase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.ofbiz.base.test.GenericTestCaseBase
- All Implemented Interfaces:
junit.framework.Test
public abstract class GenericTestCaseBase
extends junit.framework.TestCase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertComparison
(String label, int wanted, int result) static void
assertEquals
(Object wanted, Object got) static void
assertEquals
(String msg, Object wanted, Object got) static void
assertEquals
(String msg, String wanted, String got) static <T> void
assertEquals
(String msg, Collection<T> wanted, Object got) static <T> void
assertEquals
(String msg, List<T> wanted, Object got) static <T> void
assertEquals
(String msg, Map<T, ?> wanted, Object got) static <T> void
assertEquals
(String msg, Set<T> wanted, Object got) static <T> void
assertEquals
(Collection<T> wanted, Object got) static <T> void
assertEquals
(List<T> wanted, Object got) static <T> void
assertEquals
(Map<T, ?> wanted, Object got) static <T> void
assertEquals
(Set<T> wanted, Object got) static <V,
I extends Iterable<V>>
voidassertEqualsIterable
(String label, List<? extends V> wanted, int wantedExtra, I got, int gotExtra) static <V,
I extends Iterable<V>>
voidassertEqualsIterable
(String label, List<? extends V> wanted, I got) static <V,
I extends Iterable<V>>
voidassertEqualsIterable
(String label, List<? extends V> wanted, List<? extends V> wantedExtra, boolean removeWanted, I got, List<? extends V> gotExtra, boolean removeGot) static <V,
I extends Iterable<V>>
voidassertEqualsIterable
(String label, List<? extends V> wanted, List<? extends V> wantedExtra, I got, List<? extends V> gotExtra) static <V,
E extends Exception>
voidassertFuture
(String label, Future<V> future, V wanted, boolean interruptable, Class<E> thrownClass, String thrownMessage) static void
assertNotEquals
(Object wanted, Object got) static void
assertNotEquals
(String msg, Object wanted, Object got) static void
assertStaticHelperClass
(Class<?> clz) static <T> List<T>
list
(T value) static <T> List<T>
list
(T... list) static <K,
V> Map<K, V> static <T> Set<T>
static <T> Set<T>
static <T> Set<T>
set
(T value) static <T> Set<T>
set
(T... list) static void
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
Constructor Details
-
GenericTestCaseBase
-
-
Method Details
-
useAllMemory
- Throws:
Exception
-
assertStaticHelperClass
- Throws:
Exception
-
assertComparison
-
assertFuture
-
assertNotEquals
-
assertNotEquals
-
assertEquals
-
assertEquals
-
assertEquals
-
assertEquals
-
assertEquals
-
assertEquals
-
assertEqualsIterable
-
assertEqualsIterable
-
assertEqualsIterable
-
assertEqualsIterable
-
assertEquals
-
assertEquals
-
assertEquals
-
assertEquals
-
assertEquals
-
list
-
list
-
set
-
set
-
set
-
set
-
map
-