Skip to content

Commit acf9e8a

Browse files
committed
Merge pull request #15752 from Johnny Lim
* gh-15752: Polish "Fix typos in JsonContentAssert failure messages" Fix typos in JsonContentAssert failure messages
2 parents 4167d6d + e15e140 commit acf9e8a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContentAssert.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -96,7 +96,8 @@ public JsonContentAssert isEqualTo(Object expected) {
9696
if (expected instanceof Resource) {
9797
return isEqualToJson((Resource) expected);
9898
}
99-
throw new AssertionError("Unsupport type for JSON assert " + expected.getClass());
99+
throw new AssertionError(
100+
"Unsupported type for JSON assert " + expected.getClass());
100101
}
101102

102103
/**
@@ -432,7 +433,8 @@ public JsonContentAssert isNotEqualTo(Object expected) {
432433
if (expected instanceof Resource) {
433434
return isNotEqualToJson((Resource) expected);
434435
}
435-
throw new AssertionError("Unsupport type for JSON assert " + expected.getClass());
436+
throw new AssertionError(
437+
"Unsupported type for JSON assert " + expected.getClass());
436438
}
437439

438440
/**

0 commit comments

Comments
 (0)