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:
mcilwain 2017-04-13 13:00:08 -07:00 committed by Ben McIlwain
parent 5047d568de
commit 1751ea0b98
7 changed files with 18 additions and 16 deletions

View file

@ -59,8 +59,9 @@ public class DeleteReservedListCommandTest extends CommandTestCase<DeleteReserve
assertWithMessage("Expected IllegalArgumentException to be thrown").fail();
} catch (IllegalArgumentException e) {
assertThat(ReservedList.get(reservedList.getName())).isPresent();
assertThat(e).hasMessage(
"Cannot delete reserved list because it is used on these tld(s): xn--q9jyb4c");
assertThat(e)
.hasMessageThat()
.isEqualTo("Cannot delete reserved list because it is used on these tld(s): xn--q9jyb4c");
}
}
}