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

assertJsonEquals throws NullPointerException #65

Open
marcinus opened this issue Aug 31, 2020 · 0 comments
Open

assertJsonEquals throws NullPointerException #65

marcinus opened this issue Aug 31, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@marcinus
Copy link

Describe the bug
A clear and concise description of what the bug is. Make sure to include a version o Knot.x you use.

To Reproduce
Add following test to KnotxAssertionsTest:

  @DisplayName("Missing JsonArray ends with failure.")
  @Test
  void missingArray() {
    shouldFail(
        new JsonObject().put("A", new JsonArray()),
        new JsonObject(),
        "[A]");
  }

Expected behavior
AssertionError thrown

Actual behavior
NullPointerException thrown

@tMaxx tMaxx added the bug Something isn't working label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants