Class TestUtils

java.lang.Object
net.avcompris.commons3.testutil.TestUtils

public abstract class TestUtils extends Object
  • Constructor Details

    • TestUtils

      public TestUtils()
  • Method Details

    • assertFileContentEquals

      public static void assertFileContentEquals(File refFile, File testFile) throws IOException
      Throws:
      IOException
    • getResourceAsStream

      public static InputStream getResourceAsStream(String resourcePath) throws IOException
      Throws:
      IOException
    • readResource

      public static byte[] readResource(String resourcePath) throws IOException
      Throws:
      IOException
    • assertContains

      public static void assertContains(String ref, String[] array)
    • assertStartsWith

      public static void assertStartsWith(String ref, String s)
    • dynamicContainer

      public static org.junit.jupiter.api.DynamicContainer dynamicContainer(Object instance)