mirror of
https://github.com/google/nomulus
synced 2026-08-31 21:27:09 +00: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:
@@ -38,7 +38,7 @@ public class EppExceptionSubject extends Subject<EppExceptionSubject, EppExcepti
|
||||
}
|
||||
|
||||
public And<EppExceptionSubject> hasMessage(String expected) {
|
||||
assertThat(actual()).hasMessage(expected);
|
||||
assertThat(actual()).hasMessageThat().isEqualTo(expected);
|
||||
return new And<>(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user