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

JSONAssert has undeclared dependency on org.json.JSONArray #170

Open
sergeykad opened this issue Feb 7, 2023 · 1 comment
Open

JSONAssert has undeclared dependency on org.json.JSONArray #170

sergeykad opened this issue Feb 7, 2023 · 1 comment

Comments

@sergeykad
Copy link

sergeykad commented Feb 7, 2023

Using JSONAssert library produces the compilation error seen below if 'org.json:json' was not added as a dependency too.

cannot access JSONArray
            JSONAssert.assertEquals(expected, actual,
                      ^
  class file for org.json.JSONArray not found

If 'org.json:json' is required for JSONAssert usage it should be declared as a compilation dependency.

@martypitt
Copy link

Just hit this too...

java.lang.NoClassDefFoundError: org/json/JSONException

	at org.skyscreamer.jsonassert.JSONCompare.compareJSON(JSONCompare.java:49)
	at org.skyscreamer.jsonassert.JSONCompare.compareJSON(JSONCompare.java:125)

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