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:
committed by
Michael Vorburger ⛑️
parent
f3b3ebc58c
commit
55af726cf9
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user