mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 23:33:36 +02: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:
parent
fe7cc4f782
commit
c416b3892d
17 changed files with 124 additions and 172 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue