Package com.atlassian.bamboo.junit
Class Assert
java.lang.Object
com.atlassian.bamboo.junit.Assert
- Author:
- Krystian Brazulewicz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertContentTextEquals
(InputStream expected, InputStream actual, boolean trimLines) Perform textual comparison of contents returned by two input streams.static void
assertContentTextEquals
(Reader expected, Reader actual, boolean trimLines) Perform textual comparison of contents returned by two readers.static void
assertEventuallyTrue
(Duration timeout, BooleanSupplier supplier) Calls the supplier repeatedly until it returns true.static void
assertFileExists
(@NotNull File parent, String... pathElements)
-
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 dataactual
- input reader for actual datatrimLines
- 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 dataactual
- input stream for actual datatrimLines
- flag enforcing trimming lines before comparison- Throws:
IOException
- if an I/O error occurs
-
assertFileExists
-
assertEventuallyTrue
Calls the supplier repeatedly until it returns true. Throws an AssertionError if the timeout expires first.
-