Skip to content

Commit

Permalink
test(run): use hamcrest instead of assertj
Browse files Browse the repository at this point in the history
related to CAM-11517
  • Loading branch information
tmetzke committed Mar 10, 2020
1 parent 748b100 commit d5dbfbb
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
*/
package org.camunda.bpm.run.qa;

import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.MatcherAssert.assertThat;

import java.net.URISyntaxException;
import java.nio.file.Path;
Expand All @@ -34,12 +35,12 @@ public void shouldFindSqlResources() throws URISyntaxException {
Path dropDir = sqlDir.resolve("drop");
Path upgradeDir = sqlDir.resolve("upgrade");

assertThat(sqlDir).isNotNull();
assertThat(createDir).isNotNull();
assertThat(dropDir).isNotNull();
assertThat(upgradeDir).isNotNull();
assertThat(createDir.toFile().list()).hasSizeGreaterThan(0);
assertThat(dropDir.toFile().list()).hasSizeGreaterThan(0);
assertThat(upgradeDir.toFile().list()).hasSizeGreaterThan(0);
assertThat(sqlDir, is(notNullValue()));
assertThat(createDir, is(notNullValue()));
assertThat(dropDir, is(notNullValue()));
assertThat(upgradeDir, is(notNullValue()));
assertThat(createDir.toFile().list().length, is(greaterThan(0)));
assertThat(dropDir.toFile().list().length, is(greaterThan(0)));
assertThat(upgradeDir.toFile().list().length, is(greaterThan(0)));
}
}

0 comments on commit d5dbfbb

Please sign in to comment.