mirror of
https://github.com/google/nomulus.git
synced 2025-08-06 01:35:17 +02:00
Replace deprecated Truth hasMessage() method with hasMessageThat()
hasMessageThat() was added in Truth 0.32 and we are already on that version in the Nomulus release. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153095111
This commit is contained in:
parent
5047d568de
commit
1751ea0b98
7 changed files with 18 additions and 16 deletions
|
@ -81,9 +81,11 @@ public class OfyFilterTest {
|
|||
Key.create(entity);
|
||||
fail("Should not be able to create key for unregistered entity");
|
||||
} catch (IllegalStateException e) {
|
||||
assertThat(e).hasMessage(
|
||||
"class google.registry.model.ofy.OfyFilterTest$UnregisteredEntity "
|
||||
+ "has not been registered");
|
||||
assertThat(e)
|
||||
.hasMessageThat()
|
||||
.isEqualTo(
|
||||
"class google.registry.model.ofy.OfyFilterTest$UnregisteredEntity "
|
||||
+ "has not been registered");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue