mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 07:13:34 +02:00
Fix more deprecated methods in truth tests
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135481064
This commit is contained in:
parent
a09d48a4a5
commit
fabbf8871c
2 changed files with 8 additions and 8 deletions
|
@ -47,11 +47,11 @@ abstract class AbstractEppResourceSubject
|
|||
|
||||
@SuppressWarnings("unchecked")
|
||||
protected And<S> andChainer() {
|
||||
return new And<S>((S) this);
|
||||
return new And<>((S) this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplaySubject() {
|
||||
public String actualCustomStringRepresentation() {
|
||||
return String.format(
|
||||
"%s with foreign key '%s'",
|
||||
actual().getClass().getSimpleName(),
|
||||
|
@ -115,7 +115,7 @@ abstract class AbstractEppResourceSubject
|
|||
failWithBadResults(
|
||||
"has at least number of history entries", index + 1, historyEntries.size());
|
||||
}
|
||||
return new Which<HistoryEntrySubject>(assertAboutHistoryEntries()
|
||||
return new Which<>(assertAboutHistoryEntries()
|
||||
.that(getHistoryEntries().get(index)).withCustomDisplaySubject(String.format(
|
||||
"the history entry for %s at index %s", getDisplaySubject(), index)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue