mirror of
https://github.com/google/nomulus
synced 2026-09-20 06:54:43 +00:00
Migrate final try/catch test assertions to use assert/expectThrows
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=182091814
This commit is contained in:
@@ -41,6 +41,11 @@ public class EppExceptionSubject extends Subject<EppExceptionSubject, EppExcepti
|
||||
return new And<>(this);
|
||||
}
|
||||
|
||||
public And<EppExceptionSubject> hasMessageThatContains(String expected) {
|
||||
assertThat(actual()).hasMessageThat().contains(expected);
|
||||
return new And<>(this);
|
||||
}
|
||||
|
||||
public And<EppExceptionSubject> marshalsToXml() {
|
||||
// Attempt to marshal the exception to EPP. If it doesn't work, this will throw.
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user