mirror of
https://github.com/google/nomulus
synced 2026-08-29 04:07:02 +00: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:
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user