Skip to content

Commit

Permalink
[java] Fixing a test broken by 572434e
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Aug 21, 2021
1 parent 0d11ab9 commit 66a876a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/test/org/openqa/selenium/json/JsonTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ public void canNotPopulateAnObjectOfAClassWithNoDefaultConstructor() {

assertThatExceptionOfType(JsonException.class)
.isThrownBy(() -> new Json().toType(raw, NoDefaultConstructor.class))
.withMessage("Unable to parse: {\"value\": \"time\"}")
.havingCause()
.isInstanceOf(JsonException.class)
.withMessageStartingWith(
"Unable to find type coercer for class %s", NoDefaultConstructor.class.getTypeName());
}
Expand Down

0 comments on commit 66a876a

Please sign in to comment.