mardi 4 août 2015

Is there a Matcher for recursively comparing directories?

I'm writing unit tests for IM- and exporting files. I need to test the resulting directory recursively byte by byte. I implemented a routine for flat directories by myself and know how to do this recursively also. But I don't want to reinvent the wheel.

So is there something like the following examples?

Matchers.matches(Path actual, equalsRecursive(Path value));

or

FileAssertions.equalsRecursive(Path actual, Path value);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire