public class DirectoryContentAssertionUtil extends Object
Constructor and Description |
---|
DirectoryContentAssertionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
assertThatDirectoriesHaveSameContent(Path one,
Path other)
Asserts that two given directories have the exact content in terms of folders and contents of all files.
|
public static void assertThatDirectoriesHaveSameContent(@Nonnull Path one, @Nonnull Path other) throws IOException
AbstractPathAssert.hasSameTextualContentAs(Path)
to compare two files.
In case the textual content does not match, the test fails.one
- The first directoryother
- The second directoryIOException
- In case file system operations failCopyright © 2021 SAP SE. All rights reserved.