Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -32,8 +32,8 @@ public class JsonExpectationsHelper {
|
||||
/**
|
||||
* Parse the expected and actual strings as JSON and assert the two
|
||||
* are "similar" - i.e. they contain the same attribute-value pairs
|
||||
* regardless of formatting with a lenient checking (extensible, and non-strict
|
||||
* array ordering).
|
||||
* regardless of formatting with lenient checking (extensible content and
|
||||
* non-strict array ordering).
|
||||
* @param expected the expected JSON content
|
||||
* @param actual the actual JSON content
|
||||
* @since 4.1
|
||||
@@ -47,14 +47,14 @@ public class JsonExpectationsHelper {
|
||||
* Parse the expected and actual strings as JSON and assert the two
|
||||
* are "similar" - i.e. they contain the same attribute-value pairs
|
||||
* regardless of formatting.
|
||||
* <p>Can compare in two modes, depending on {@code strict} parameter value:
|
||||
* <p>Can compare in two modes, depending on the {@code strict} parameter value:
|
||||
* <ul>
|
||||
* <li>{@code true}: strict checking. Not extensible, and strict array ordering.</li>
|
||||
* <li>{@code false}: lenient checking. Extensible, and non-strict array ordering.</li>
|
||||
* <li>{@code true}: strict checking. Not extensible and strict array ordering.</li>
|
||||
* <li>{@code false}: lenient checking. Extensible and non-strict array ordering.</li>
|
||||
* </ul>
|
||||
* @param expected the expected JSON content
|
||||
* @param actual the actual JSON content
|
||||
* @param strict enables strict checking
|
||||
* @param strict enables strict checking if {@code true}
|
||||
* @since 4.2
|
||||
*/
|
||||
public void assertJsonEqual(String expected, String actual, boolean strict) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user