summaryrefslogtreecommitdiff
path: root/backend/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/test/java')
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/game/GameTest.java18
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java11
2 files changed, 15 insertions, 14 deletions
diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/GameTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/GameTest.java
index 377f1a88..e9f7facf 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/game/GameTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/game/GameTest.java
@@ -57,15 +57,15 @@ public class GameTest {
private static PlayerMove getFirstAvailableMove(PlayerTurnInfo turnInfo) {
switch (turnInfo.getAction()) {
- case PLAY:
- case PLAY_2:
- case PLAY_LAST:
- return createPlayCardMove(turnInfo);
- case PICK_NEIGHBOR_GUILD:
- return createPickGuildMove(turnInfo);
- case WAIT:
- default:
- return null;
+ case PLAY:
+ case PLAY_2:
+ case PLAY_LAST:
+ return createPlayCardMove(turnInfo);
+ case PICK_NEIGHBOR_GUILD:
+ return createPickGuildMove(turnInfo);
+ case WAIT:
+ default:
+ return null;
}
}
diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java
index 797f14d3..efed4f7d 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java
@@ -20,7 +20,7 @@ public class RequirementsTest {
@DataPoints
public static int[] goldAmounts() {
- return new int[] {0, 1, 2, 5};
+ return new int[]{0, 1, 2, 5};
}
@DataPoints
@@ -49,7 +49,8 @@ public class RequirementsTest {
Table table = new Table(Collections.singletonList(board));
assertEquals(initialResource == requiredResource, requirements.areMetWithoutNeighboursBy(board));
- assertEquals(initialResource == requiredResource, requirements.areMetWithHelpBy(board, Collections.emptyList()));
+ assertEquals(initialResource == requiredResource,
+ requirements.areMetWithHelpBy(board, Collections.emptyList()));
if (initialResource == requiredResource) {
assertTrue(requirements.couldBeMetBy(table, 0));
@@ -58,7 +59,7 @@ public class RequirementsTest {
@Theory
public void resourceRequirement_ownProduction(ResourceType initialResource, ResourceType producedResource,
- ResourceType requiredResource) {
+ ResourceType requiredResource) {
assumeTrue(initialResource != requiredResource);
Requirements requirements = TestUtils.createRequirements(requiredResource);
@@ -68,11 +69,11 @@ public class RequirementsTest {
Table table = new Table(Collections.singletonList(board));
assertEquals(producedResource == requiredResource, requirements.areMetWithoutNeighboursBy(board));
- assertEquals(producedResource == requiredResource, requirements.areMetWithHelpBy(board, Collections.emptyList()));
+ assertEquals(producedResource == requiredResource,
+ requirements.areMetWithHelpBy(board, Collections.emptyList()));
if (producedResource == requiredResource) {
assertTrue(requirements.couldBeMetBy(table, 0));
}
}
-
}
bgstack15