summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-10 08:43:47 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-10 08:43:47 +0200
commitd9fe614551e8d5d63a0b3fc90cf0bf27d5515af5 (patch)
treec20c67a8b6530b50989276cff903a2802b76f21b
parentAdd test to play a whole game trivially (diff)
downloadseven-wonders-d9fe614551e8d5d63a0b3fc90cf0bf27d5515af5.tar.gz
seven-wonders-d9fe614551e8d5d63a0b3fc90cf0bf27d5515af5.tar.bz2
seven-wonders-d9fe614551e8d5d63a0b3fc90cf0bf27d5515af5.zip
Fix code style for checkstyle
-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