Class TestUtil

java.lang.Object
nl.pim16aap2.testing.TestUtil

public final class TestUtil extends Object
  • Method Details

    • throwableToString

      public static String throwableToString(@Nullable Throwable throwable)
      Converts a throwable to a string.
      Parameters:
      throwable - The throwable to convert.
      Returns:
      The string representation of the throwable.
    • newMock

      public static @Nullable Object newMock(Class<?> type)
    • newMock

      public static @Nullable Object newMock(Class<?> type, org.mockito.stubbing.Answer<?> defaultAnswer)
    • newMock

      public static @Nullable Object newMock(Class<?> type, org.mockito.MockSettings mockSettings)