com.atlassian.bamboo.junit
Class Assert

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

public class Assert
extends java.lang.Object

Author:
Krystian Brazulewicz

Constructor Summary
Assert()
           
 
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
 

Constructor Detail

Assert

public Assert()
Method Detail

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 data
actual - input reader for actual data
trimLines - 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 data
actual - input stream for actual data
trimLines - 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.