summaryrefslogtreecommitdiff
path: root/backend/src/test
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-15 23:51:36 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-15 23:51:36 +0200
commitc8cc8c73f6343b453c4a21b1838c0ec3bdd1e7a1 (patch)
tree7e01c4221cf66b6fef35c9d7bd1783c7a37abe09 /backend/src/test
parentAdd tests for requirement and payment of bought resources (diff)
downloadseven-wonders-c8cc8c73f6343b453c4a21b1838c0ec3bdd1e7a1.tar.gz
seven-wonders-c8cc8c73f6343b453c4a21b1838c0ec3bdd1e7a1.tar.bz2
seven-wonders-c8cc8c73f6343b453c4a21b1838c0ec3bdd1e7a1.zip
Remove useless 'throws Exception' declarations in tests
Diffstat (limited to 'backend/src/test')
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java2
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java2
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionLoaderTest.java2
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java2
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElementTest.java2
-rw-r--r--backend/src/test/java/org/luxons/sevenwonders/lobby/LobbyTest.java2
6 files changed, 6 insertions, 6 deletions
diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java
index a4f8b95b..6f637f87 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java
@@ -7,7 +7,7 @@ import static org.junit.Assert.assertEquals;
public class CardBackTest {
@Test
- public void initializedWithImage() throws Exception {
+ public void initializedWithImage() {
String imagePath = "whateverimage.png";
CardBack back = new CardBack(imagePath);
assertEquals(imagePath, back.getImage());
diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java
index d027464a..ddd69b70 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java
@@ -7,7 +7,7 @@ import static org.junit.Assert.assertEquals;
public class HandRotationDirectionTest {
@Test
- public void testAgesDirections() throws Exception {
+ public void testAgesDirections() {
assertEquals(HandRotationDirection.LEFT, HandRotationDirection.forAge(1));
assertEquals(HandRotationDirection.RIGHT, HandRotationDirection.forAge(2));
assertEquals(HandRotationDirection.LEFT, HandRotationDirection.forAge(3));
diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionLoaderTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionLoaderTest.java
index 36a42c61..e678e6a5 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionLoaderTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionLoaderTest.java
@@ -7,7 +7,7 @@ import static org.junit.Assert.assertNotNull;
public class GameDefinitionLoaderTest {
@Test
- public void successfulLoad() throws Exception {
+ public void successfulLoad() {
GameDefinitionLoader loader = new GameDefinitionLoader();
GameDefinition gameDefinition = loader.getGameDefinition();
assertNotNull(gameDefinition);
diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java
index f29b33d9..c693a2a2 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java
@@ -9,7 +9,7 @@ import static org.junit.Assert.assertNotNull;
public class GameDefinitionTest {
@Test
- public void successfulGameInit() throws Exception {
+ public void successfulGameInit() {
GameDefinition gameDefinition = new GameDefinitionLoader().getGameDefinition();
assertNotNull(gameDefinition);
diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElementTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElementTest.java
index a783ba5a..8c7da876 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElementTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElementTest.java
@@ -39,7 +39,7 @@ public class BonusPerBoardElementTest {
private Table table;
@Before
- public void setUp() throws Exception {
+ public void setUp() {
table = TestUtils.createTable(4);
}
diff --git a/backend/src/test/java/org/luxons/sevenwonders/lobby/LobbyTest.java b/backend/src/test/java/org/luxons/sevenwonders/lobby/LobbyTest.java
index 2e40d3cf..ad59d983 100644
--- a/backend/src/test/java/org/luxons/sevenwonders/lobby/LobbyTest.java
+++ b/backend/src/test/java/org/luxons/sevenwonders/lobby/LobbyTest.java
@@ -217,7 +217,7 @@ public class LobbyTest {
}
@Test
- public void setSettings() throws Exception {
+ public void setSettings() {
CustomizableSettings settings = new CustomizableSettings();
lobby.setSettings(settings);
assertSame(settings, lobby.getSettings());
bgstack15