public abstract class AvcFileAssert
extends com.avcompris.util.AbstractUtils
| Constructor and Description |
|---|
AvcFileAssert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertCodeEquals(File refFile,
File file)
assert two code files are equal.
|
static void |
assertEquals(File expected,
byte[] actual)
assert a byte array is equal to a Ref File.
|
static void |
assertEquals(String message,
File expected,
byte[] actual)
assert a byte array is equal to a Ref File.
|
static void |
assertEquals(String message,
File expected,
byte[] actual,
String encoding)
assert a byte array is equal to a Ref File.
|
static void |
assertProcessedEquals(File refFile,
File file,
Properties properties)
assert two text files are equal.
|
static void |
assertRegexpEquals(File refFile,
File file)
assert two text files are equal.
|
static void |
assertTextEquals(File refFile,
File file)
assert two text files are equal.
|
static String |
renderSpaces(String s)
render spaces in a
String. |
public static void assertTextEquals(File refFile, File file) throws IOException
refFile - the reference filefile - the actual fileIOExceptionpublic static void assertRegexpEquals(File refFile, File file) throws IOException
refFile - the reference filefile - the actual fileIOExceptionpublic static void assertProcessedEquals(File refFile, File file, @Nullable Properties properties) throws IOException
refFile - the reference filefile - the actual fileproperties - the filtering propertiesIOExceptionpublic static void assertCodeEquals(File refFile, File file) throws IOException
refFile - the reference filefile - the actual fileIOExceptionpublic static void assertEquals(@Nullable
String message,
File expected,
byte[] actual)
throws IOException
This code has been copied/pasted from junitx.framework.FileAssert, then rearranged a little.
message - the message to display in case of failureexpected - the reference fileactual - the actual read byteIOExceptionpublic static void assertEquals(File expected, byte[] actual) throws IOException
expected - the reference fileactual - the actual read byteIOExceptionpublic static void assertEquals(@Nullable
String message,
File expected,
byte[] actual,
String encoding)
throws IOException
This code has been copied/pasted from junitx.framework.FileAssert, then rearranged a little.
message - the message to display in case of failureexpected - the reference fileactual - the actual read byteencoding - the encoding to use for the comparisonIOExceptionCopyright © 2018 David Andrianavalontsalama. All rights reserved.