Given
User adds pet "Golden Retriever" to the pet store
0.070
And
Places order for a pet with quantity of 5, ship date in 1 month with status approved
0.061
And
Order is placed
0.065
org.assertj.core.api.SoftAssertionError:
The following 4 assertions failed:
1) [Oder pet ID is not correct!] expected:<[795925539]> but was:<[0]>
2) [Oder quantity is not correct!] expected:<[5]> but was:<[0]>
3) [Oder Ship Date is not correct!]
expected: 2025-11-27T09:22:03 (java.time.LocalDateTime)
but was: 2023-03-27T02:14:59.643 (java.time.LocalDateTime)
when comparing values using 'ChronoLocalDateTime.timeLineOrder()'
at StoreStepdef.lambda$validateOrderIsPlaced$0(StoreStepdef.java:51)
4) [Oder status is not correct!] expected:<"[approv]ed"> but was:<"[plac]ed">
at org.assertj.core.error.AssertionErrorCreator.multipleSoftAssertionsError(AssertionErrorCreator.java:99)
at org.assertj.core.api.AbstractSoftAssertions.assertAll(AbstractSoftAssertions.java:38)
at org.assertj.core.api.AbstractSoftAssertions.assertAll(AbstractSoftAssertions.java:43)
at org.assertj.core.api.SoftAssertionsProvider.assertSoftly(SoftAssertionsProvider.java:120)
at org.assertj.core.api.SoftAssertions.assertSoftly(SoftAssertions.java:162)
at com.levi9.functionaltests.stepdefs.petstore.StoreStepdef.validateOrderIsPlaced(StoreStepdef.java:47)
at ✽.Order is placed(file:///home/runner/work/functional-tests/functional-tests/target/cucumber/cucable-generated/features/store_2_scenario002_run001_IT.feature:14)
When
Removes order from pet store
0.000
Then
Order will be successfully removed
0.000