further optimisation by using iterator rather than forloop with if-clauses

This commit is contained in:
leriomaggio
2021-08-25 18:44:59 +01:00
parent eff9bc4d89
commit 7b70a34da0
2 changed files with 30 additions and 22 deletions

View File

@@ -83,4 +83,12 @@ public class CardDbPerformanceTests extends CardDbTestCase {
assertNotNull(card);
}
}
@Test
public void testGetCardFullDbLegacyImplementationToProfile(){
for (String name : this.fullDbCardNames) {
PaperCard card = this.legacyCardDb.getCard(name);
assertNotNull(card);
}
}
}