Class Assert

java.lang.Object
com.atlassian.bamboo.junit.Assert

public class Assert extends Object
Author:
Krystian Brazulewicz
  • Constructor Details

    • Assert

      public Assert()
  • Method Details

    • assertContentTextEquals

      public static void assertContentTextEquals(Reader expected, Reader actual, boolean trimLines) throws IOException
      Perform textual comparison of contents returned by two readers. Variation of IOUtils.contentEquals.
      Parameters:
      expected - input reader for expected data
      actual - input reader for actual data
      trimLines - flag enforcing trimming lines before comparison
      Throws:
      IOException - if an I/O error occurs
    • assertContentTextEquals

      public static void assertContentTextEquals(InputStream expected, InputStream actual, boolean trimLines) throws IOException
      Perform textual comparison of contents returned by two input streams. Variation of IOUtils.contentEquals.
      Parameters:
      expected - input stream for expected data
      actual - input stream for actual data
      trimLines - flag enforcing trimming lines before comparison
      Throws:
      IOException - if an I/O error occurs
    • assertFileExists

      public static void assertFileExists(@NotNull @NotNull File parent, String... pathElements)
    • assertEventuallyTrue

      public static void assertEventuallyTrue(Duration timeout, BooleanSupplier supplier)
      Calls the supplier repeatedly until it returns true. Throws an AssertionError if the timeout expires first.