-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Description
After upgrading my project to assertj 3.15.0 JsonUnit fails due to a removed method:
java.lang.NoSuchMethodError: org.assertj.core.api.StringAssert.as(Ljava/lang/String;[Ljava/lang/Object;)Lorg/assertj/core/api/AbstractAssert;
at net.javacrumbs.jsonunit.assertj.JsonAssert.isString(JsonAssert.java:203)
at net.javacrumbs.jsonunit.assertj.JsonAssert.asString(JsonAssert.java:208)
at io.jenkins.plugins.analysis.warnings.recorder.RemoteApiITest.assertThatToolsContains(RemoteApiITest.java:171)
at io.jenkins.plugins.analysis.warnings.recorder.RemoteApiITest.shouldReturnAggregation(RemoteApiITest.java:160)
(See also CI build)
My test case snippet that causes the problem:
assertThatJson(tools.get(i))
.node("latestUrl")
.asString()
.matches("http://localhost:\\d+/jenkins/job/test\\d+/1/" + expectedId);
Metadata
Metadata
Assignees
Labels
No labels