lundi 2 novembre 2020

Is there an option to compare folders with Assertj given Path?

I am interested in adding to my Assertions verification of folder(path). Because I want to keep my classes homogeneous I am looking for neat solution with Assertj. I am considering just extracting each path to list of files/folders and comparing, but the method will become much more complex then. Was not able to find something fitting so far, looking at usingComparator() method, unsure on how whether I can. The method looks something like this:

public void assertEquals(Path actual, Path expected) {
    Assertions.assertThat(actual).isEqualTo(expected);
}

Thanks

Aucun commentaire:

Enregistrer un commentaire