|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2024 the original author or authors. |
| 2 | + * Copyright 2002-2025 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
31 | 31 | import com.jayway.jsonpath.DocumentContext;
|
32 | 32 | import com.jayway.jsonpath.JsonPath;
|
33 | 33 | import com.jayway.jsonpath.TypeRef;
|
| 34 | +import org.skyscreamer.jsonassert.JSONAssert; |
34 | 35 |
|
35 | 36 | import org.springframework.core.ParameterizedTypeReference;
|
36 | 37 | import org.springframework.core.ResolvableType;
|
|
42 | 43 | import org.springframework.graphql.support.DocumentSource;
|
43 | 44 | import org.springframework.lang.Nullable;
|
44 | 45 | import org.springframework.test.util.AssertionErrors;
|
45 |
| -import org.springframework.test.util.JsonExpectationsHelper; |
46 | 46 | import org.springframework.test.util.JsonPathExpectationsHelper;
|
47 | 47 | import org.springframework.util.Assert;
|
48 | 48 | import org.springframework.util.CollectionUtils;
|
@@ -469,7 +469,7 @@ private void matchesJson(String expected, boolean strict) {
|
469 | 469 | this.delegate.doAssert(() -> {
|
470 | 470 | String actual = this.delegate.jsonContent(this.jsonPath);
|
471 | 471 | try {
|
472 |
| - new JsonExpectationsHelper().assertJsonEqual(expected, actual, strict); |
| 472 | + JSONAssert.assertEquals(expected, actual, strict); |
473 | 473 | }
|
474 | 474 | catch (AssertionError ex) {
|
475 | 475 | throw new AssertionError(ex.getMessage() + "\n\n" + "Expected JSON content:\n'" + expected + "'\n\n"
|
|
0 commit comments