mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Updated POM to use Java 8. Updated some tool versions in the POMs.
This commit is contained in:
parent
ca39289a3a
commit
3516dc75e4
3 changed files with 19 additions and 29 deletions
|
|
@ -13,8 +13,6 @@ import static org.junit.Assert.assertTrue;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.MageTestBase;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -84,21 +82,14 @@ public class BoosterGenerationTest extends MageTestBase {
|
|||
}
|
||||
|
||||
private static boolean contains(List<Card> cards, List<String> names, String code) {
|
||||
for (String name : names) {
|
||||
if (contains(cards, name, code)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return names.stream().anyMatch((name) -> (contains(cards, name, code)));
|
||||
}
|
||||
|
||||
private static boolean contains(List<Card> cards, String name, String code) {
|
||||
for (Card card : cards) {
|
||||
if (card.getName().equals(name) && (code == null || card.getExpansionSetCode().equals(code))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return cards.stream().anyMatch((card)
|
||||
-> (card.getName().equals(name)
|
||||
&& (code == null || card.getExpansionSetCode().equals(code)))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue