mirror of
https://github.com/google/nomulus
synced 2026-09-08 17:17:02 +00:00
Prevent saving duplicate rows in spec11 pipeline (#1810)
* Prevent saving duplicate rows in spec11 pipeline * Chain applies together
This commit is contained in:
@@ -280,9 +280,9 @@ class Spec11PipelineTest {
|
||||
private void verifySaveToCloudSql() {
|
||||
tm().transact(
|
||||
() -> {
|
||||
ImmutableList<Spec11ThreatMatch> sqlThreatMatches =
|
||||
ImmutableList<Spec11ThreatMatch> spec11ThreatMatches =
|
||||
Spec11ThreatMatchDao.loadEntriesByDate(tm(), new LocalDate(2020, 1, 27));
|
||||
assertThat(sqlThreatMatches)
|
||||
assertThat(spec11ThreatMatches)
|
||||
.comparingElementsUsing(immutableObjectCorrespondence("id"))
|
||||
.containsExactlyElementsIn(sqlThreatMatches);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user