public final class SdkAsserts extends Object
| Modifier and Type | Method and Description | 
|---|---|
static void | 
assertFileEqualsFile(File expected,
                    File actual)
Asserts that the contents of the two files are same. 
 | 
static void | 
assertFileEqualsStream(File expected,
                      InputStream actual)
Asserts that the contents in the specified file are exactly equal to the contents read from
 the specified input stream. 
 | 
static void | 
assertFileEqualsStream(String errmsg,
                      File expected,
                      InputStream actual)
Asserts that the contents in the specified file are exactly equal to the contents read from
 the specified input stream. 
 | 
static void | 
assertNotEmpty(String str)
Deprecated. 
 
Use Hamcrest Matchers instead 
 | 
static void | 
assertStreamEqualsStream(InputStream expected,
                        InputStream actual)
Asserts that the contents in the specified input streams are same. 
 | 
static void | 
assertStreamEqualsStream(String errmsg,
                        InputStream expectedInputStream,
                        InputStream inputStream)
Asserts that the contents in the specified input streams are same. 
 | 
static void | 
assertStringEqualsStream(String expected,
                        InputStream actual)
Asserts that the contents in the specified string are exactly equal to the contents read from
 the specified input stream. 
 | 
static boolean | 
doesFileEqualStream(File expectedFile,
                   InputStream inputStream)
Returns true if, and only if, the contents in the specified file are exactly equal to the
 contents read from the specified input stream. 
 | 
static boolean | 
doesStreamEqualStream(InputStream expected,
                     InputStream actual)
Returns true if, and only if, the contents read from the specified input streams are exactly
 equal. 
 | 
@Deprecated public static void assertNotEmpty(String str)
str - The String to test.public static void assertFileEqualsStream(File expected, InputStream actual)
expected - The file containing the expected contents.actual - The stream that will be read, compared to the expected file contents, and finally
            closed.public static void assertFileEqualsStream(String errmsg, File expected, InputStream actual)
errmsg - error message to be thrown when the assertion fails.expected - The file containing the expected contents.actual - The stream that will be read, compared to the expected file contents, and finally
            closed.public static void assertStreamEqualsStream(InputStream expected, InputStream actual)
expected - expected input stream. The stream will be closed at the end.actual - The stream that will be read, compared to the expected file contents, and finally
            closed.public static void assertStreamEqualsStream(String errmsg, InputStream expectedInputStream, InputStream inputStream)
errmsg - error message to be thrown when the assertion fails.expectedInputStream - expected input stream. The stream will be closed at the end.inputStream - The stream that will be read, compared to the expected file contents, and finally
            closed.public static void assertFileEqualsFile(File expected, File actual)
expected - expected file.actual - actual file.public static void assertStringEqualsStream(String expected, InputStream actual)
expected - The string containing the expected data.actual - The stream that will be read, compared to the expected string data, and finally
            closed.public static boolean doesStreamEqualStream(InputStream expected, InputStream actual) throws IOException
expected - The input stream containing the expected contents.actual - The stream that will be read, compared to the expected file contents, and finally
            closed.IOException - If any problems are encountered comparing the file and stream.public static boolean doesFileEqualStream(File expectedFile, InputStream inputStream) throws IOException
expectedFile - The file containing the expected contents.inputStream - The stream that will be read, compared to the expected file contents, and finally
            closed.IOException - If any problems are encountered comparing the file and stream.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.