From d5dbfbb655aaea4f22bbf6c32ee30815e0b64d50 Mon Sep 17 00:00:00 2001 From: Tobias Metzke Date: Tue, 10 Mar 2020 12:54:34 +0100 Subject: [PATCH] test(run): use hamcrest instead of assertj related to CAM-11517 --- .../camunda/bpm/run/qa/SqlAvailabilityIT.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/distro/run/qa/src/test/java/org/camunda/bpm/run/qa/SqlAvailabilityIT.java b/distro/run/qa/src/test/java/org/camunda/bpm/run/qa/SqlAvailabilityIT.java index 8dc5e65a39b..7317c3adcf0 100644 --- a/distro/run/qa/src/test/java/org/camunda/bpm/run/qa/SqlAvailabilityIT.java +++ b/distro/run/qa/src/test/java/org/camunda/bpm/run/qa/SqlAvailabilityIT.java @@ -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; @@ -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))); } }