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 Details

    • GenericTestCaseBase

      protected GenericTestCaseBase(String name)
  • Method Details

    • useAllMemory

      public static void useAllMemory() throws Exception
      Throws:
      Exception
    • assertStaticHelperClass

      public static void assertStaticHelperClass(Class<?> clz) throws Exception
      Throws:
      Exception
    • assertComparison

      public static void assertComparison(String label, int wanted, int result)
    • assertFuture

      public static <V, E extends Exception> void assertFuture(String label, Future<V> future, V wanted, boolean interruptable, Class<E> thrownClass, String thrownMessage)
    • assertNotEquals

      public static void assertNotEquals(Object wanted, Object got)
    • assertNotEquals

      public static void assertNotEquals(String msg, Object wanted, Object got)
    • assertEquals

      public static <T> void assertEquals(List<T> wanted, Object got)
    • assertEquals

      public static <T> void assertEquals(String msg, List<T> wanted, Object got)
    • assertEquals

      public static <T> void assertEquals(Collection<T> wanted, Object got)
    • assertEquals

      public static <T> void assertEquals(String msg, Collection<T> wanted, Object got)
    • assertEquals

      public static <T> void assertEquals(Set<T> wanted, Object got)
    • assertEquals

      public static <T> void assertEquals(String msg, Set<T> wanted, Object got)
    • assertEqualsIterable

      public static <V, I extends Iterable<V>> void assertEqualsIterable(String label, List<? extends V> wanted, I got)
    • assertEqualsIterable

      public static <V, I extends Iterable<V>> void assertEqualsIterable(String label, List<? extends V> wanted, int wantedExtra, I got, int gotExtra)
    • assertEqualsIterable

      public static <V, I extends Iterable<V>> void assertEqualsIterable(String label, List<? extends V> wanted, List<? extends V> wantedExtra, I got, List<? extends V> gotExtra)
    • assertEqualsIterable

      public static <V, I extends Iterable<V>> void assertEqualsIterable(String label, List<? extends V> wanted, List<? extends V> wantedExtra, boolean removeWanted, I got, List<? extends V> gotExtra, boolean removeGot)
    • assertEquals

      public static <T> void assertEquals(Map<T,?> wanted, Object got)
    • assertEquals

      public static <T> void assertEquals(String msg, Map<T,?> wanted, Object got)
    • assertEquals

      public static void assertEquals(String msg, String wanted, String got)
    • assertEquals

      public static void assertEquals(Object wanted, Object got)
    • assertEquals

      public static void assertEquals(String msg, Object wanted, Object got)
    • list

      public static <T> List<T> list(T value)
    • list

      @SafeVarargs public static <T> List<T> list(T... list)
    • set

      public static <T> Set<T> set(T value)
    • set

      @SafeVarargs public static <T> Set<T> set(T... list)
    • set

      public static <T> Set<T> set(Iterable<T> iterable)
    • set

      public static <T> Set<T> set(Iterator<T> it)
    • map

      public static <K, V> Map<K,V> map(Object... list)