Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.12.0 not compatible with AssertJ release 3.15.0 #216

Closed
uhafner opened this issue Feb 4, 2020 · 3 comments
Closed

Release 2.12.0 not compatible with AssertJ release 3.15.0 #216

uhafner opened this issue Feb 4, 2020 · 3 comments

Comments

@uhafner
Copy link

uhafner commented Feb 4, 2020

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);

@lukas-krecan
Copy link
Owner

Hi, thanks for reporting it. It seems that AssertJ indeed moved the method from AbstractAssert class to Descriptable interface default method which is source compatible but not binary compatible change. I will rebuild the project which should fix it.

@lukas-krecan
Copy link
Owner

Released as 2.13.0

@uhafner
Copy link
Author

uhafner commented Feb 5, 2020

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants