Skip to content

Commit f0c6893

Browse files
committed
fix reviewed issues
1 parent 3848bd3 commit f0c6893

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/it/aboutbits/springboot/testing/web/response/ResponseBodyMatchers.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public final class ResponseBodyMatchers {
2323

2424
private String[] fieldNamesToIgnore = new String[0];
2525
private String[] optionalFieldNamesToIgnore = new String[0];
26-
private boolean ignoreAudition = false;
26+
private boolean ignoreAuditFields = false;
2727

2828
private ResponseBodyMatchers(String jsonPath) {
2929
this.jsonPath = jsonPath;
@@ -48,7 +48,7 @@ public ResponseBodyMatchers ignoringFields(String... fieldNamesToIgnore) {
4848
}
4949

5050
public ResponseBodyMatchers ignoringAuditFields() {
51-
this.ignoreAudition = true;
51+
this.ignoreAuditFields = true;
5252
return this;
5353
}
5454

@@ -64,7 +64,7 @@ public <T> ResultMatcher containsObjectAsJson(
6464

6565
var ignoredFields = new ArrayList<>(Arrays.asList(fieldNamesToIgnore));
6666
ignoredFields.addAll(Arrays.asList(optionalFieldNamesToIgnore));
67-
if (ignoreAudition) {
67+
if (ignoreAuditFields) {
6868
ignoredFields.addAll(Arrays.asList("createdAt", "createdBy", "updatedAt", "updatedBy"));
6969
}
7070

0 commit comments

Comments
 (0)