improve SchedulerJobsTest.testDateFormat() by introducing Awaitility

This recently introduced new test (FINERACT-926) would locally pass, but
then fail on the next run, because another test in the same class would
modify job state to be inactive.  It now sets the first jobs state as it
requires it to be, and properly awaits the expected outcome.
This commit is contained in:
Michael Vorburger
2020-05-09 17:05:32 +02:00
committed by Michael Vorburger ⛑️
parent f3b3ebc58c
commit 55af726cf9
4 changed files with 15 additions and 11 deletions
+3 -2
View File
@@ -78,7 +78,7 @@ dependencies {
exclude group: 'javax.validation'
}
implementation ('org.apache.activemq:activemq-broker') {
exclude group: 'org.apache.geronimo.specs'
exclude group: 'org.apache.geronimo.specs'
}
implementation ('org.springframework.boot:spring-boot-starter-data-jpa') {
exclude group: 'org.hibernate'
@@ -111,9 +111,10 @@ dependencies {
// Do NOT repeat dependencies which are ALREADY in implementation or runtimeOnly!
//
testImplementation( 'junit:junit',
'org.junit.platform:junit-platform-runner', // FINERACT-943
'org.junit.platform:junit-platform-runner', // FINERACT-943
'org.mockito:mockito-core',
'io.github.classgraph:classgraph',
'org.awaitility:awaitility'
)
testImplementation ('io.rest-assured:rest-assured') {
exclude group: 'commons-logging'