From c8cc8c73f6343b453c4a21b1838c0ec3bdd1e7a1 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Mon, 15 May 2017 23:51:36 +0200 Subject: Remove useless 'throws Exception' declarations in tests --- .../src/test/java/org/luxons/sevenwonders/game/cards/CardBackTest.java | 2 +- .../org/luxons/sevenwonders/game/cards/HandRotationDirectionTest.java | 2 +- .../org/luxons/sevenwonders/game/data/GameDefinitionLoaderTest.java | 2 +- .../test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java | 2 +- .../org/luxons/sevenwonders/game/effects/BonusPerBoardElementTest.java | 2 +- backend/src/test/java/org/luxons/sevenwonders/lobby/LobbyTest.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'backend/src') 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()); -- cgit