com.atlassian.bamboo.junit
Class Assert
java.lang.Object
com.atlassian.bamboo.junit.Assert
public class Assert
- extends java.lang.Object
- Author:
- Krystian Brazulewicz
Method Summary |
static void |
assertContentTextEquals(java.io.InputStream expected,
java.io.InputStream actual,
boolean trimLines)
Perform textual comparison of contents returned by two input streams. |
static void |
assertContentTextEquals(java.io.Reader expected,
java.io.Reader actual,
boolean trimLines)
Perform textual comparison of contents returned by two readers. |
static void |
assertFileExists(java.io.File parent,
java.lang.String... pathElements)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Assert
public Assert()
assertContentTextEquals
public static void assertContentTextEquals(java.io.Reader expected,
java.io.Reader actual,
boolean trimLines)
throws java.io.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:
java.io.IOException
- if an I/O error occurs
assertContentTextEquals
public static void assertContentTextEquals(java.io.InputStream expected,
java.io.InputStream actual,
boolean trimLines)
throws java.io.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:
java.io.IOException
- if an I/O error occurs
assertFileExists
public static void assertFileExists(@NotNull
java.io.File parent,
java.lang.String... pathElements)
Copyright © 2012 Atlassian. All Rights Reserved.