summaryrefslogtreecommitdiff
path: root/backend/src/main/java
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-16 00:39:47 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-16 00:39:47 +0200
commite4df5c0a822643078bbc85dec4eb0573e172257b (patch)
treed114bf9b30ee17bc70b1e55127e8de9d551d942b /backend/src/main/java
parentAdd HomeController test (diff)
downloadseven-wonders-e4df5c0a822643078bbc85dec4eb0573e172257b.tar.gz
seven-wonders-e4df5c0a822643078bbc85dec4eb0573e172257b.tar.bz2
seven-wonders-e4df5c0a822643078bbc85dec4eb0573e172257b.zip
Add GameBrowserController test
Diffstat (limited to 'backend/src/main/java')
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/controllers/GameBrowserController.java2
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/lobby/Player.java3
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/repositories/PlayerRepository.java2
3 files changed, 3 insertions, 4 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/controllers/GameBrowserController.java b/backend/src/main/java/org/luxons/sevenwonders/controllers/GameBrowserController.java
index dca77465..b482407f 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/controllers/GameBrowserController.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/controllers/GameBrowserController.java
@@ -93,7 +93,7 @@ public class GameBrowserController {
}
}
- private static class UserAlreadyInGameException extends ApiMisuseException {
+ static class UserAlreadyInGameException extends ApiMisuseException {
UserAlreadyInGameException(String gameName, String impossibleActionDescription) {
super("Client already in game '" + gameName + "', " + impossibleActionDescription);
}
diff --git a/backend/src/main/java/org/luxons/sevenwonders/lobby/Player.java b/backend/src/main/java/org/luxons/sevenwonders/lobby/Player.java
index c0ac6282..6698c476 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/lobby/Player.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/lobby/Player.java
@@ -1,8 +1,7 @@
package org.luxons.sevenwonders.lobby;
-import org.luxons.sevenwonders.game.Game;
-
import com.fasterxml.jackson.annotation.JsonIgnore;
+import org.luxons.sevenwonders.game.Game;
public class Player {
diff --git a/backend/src/main/java/org/luxons/sevenwonders/repositories/PlayerRepository.java b/backend/src/main/java/org/luxons/sevenwonders/repositories/PlayerRepository.java
index 541393e1..62c827db 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/repositories/PlayerRepository.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/repositories/PlayerRepository.java
@@ -52,7 +52,7 @@ public class PlayerRepository {
return player;
}
- static class PlayerNotFoundException extends ApiMisuseException {
+ public static class PlayerNotFoundException extends ApiMisuseException {
PlayerNotFoundException(String username) {
super("Player '" + username + "' doesn't exist");
}
bgstack15