public class Assert extends Object
Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
static 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(long timeoutMillis,
BooleanSupplier supplier)
Calls the supplier repeatedly until it returns true.
|
static void |
assertFileExists(File parent,
String... pathElements) |
public static void assertContentTextEquals(Reader expected, Reader actual, boolean trimLines) throws IOException
expected
- input reader for expected dataactual
- input reader for actual datatrimLines
- flag enforcing trimming lines before comparisonIOException
- if an I/O error occurspublic static void assertContentTextEquals(InputStream expected, InputStream actual, boolean trimLines) throws IOException
expected
- input stream for expected dataactual
- input stream for actual datatrimLines
- flag enforcing trimming lines before comparisonIOException
- if an I/O error occurspublic static void assertEventuallyTrue(long timeoutMillis, BooleanSupplier supplier)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.