You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am try to compare 2 API response against db result using a soft assertion
Ensure.that does not appear to support soft assert: Unless I am doing this completing wrong. actor.attemptsTo( Ensure.that("String from db").isEqualTo(SerenityRest.lastResponse().body().jsonPath().getString("<json path>")) )
When using JUnit 5 I getting a hamcrest matcher error 'NoSuchMethodError: 'void org.hamcrest.Matcher.describeMismatch' rttGraphql.should( seeThat(DBQuestion.getString("db column"), is(equalTo(SerenityRest.lastResponse().body().jsonPath().getString("<json path>")))))
Has anyone tried any other option for soft assertions with JUnit 5?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am try to compare 2 API response against db result using a soft assertion
actor.attemptsTo( Ensure.that("String from db").isEqualTo(SerenityRest.lastResponse().body().jsonPath().getString("<json path>")) )
rttGraphql.should( seeThat(DBQuestion.getString("db column"), is(equalTo(SerenityRest.lastResponse().body().jsonPath().getString("<json path>")))))
Has anyone tried any other option for soft assertions with JUnit 5?
Beta Was this translation helpful? Give feedback.
All reactions