summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-01-14 03:54:44 +0100
committerJoffrey BION <joffrey.bion@gmail.com>2017-01-14 03:54:44 +0100
commit0b0878a567c0554fbdeb6700724bc20f2c223800 (patch)
treed0f5e052300cee5c138aac2132ae7fb95256b579 /src/test/java
parentAdd support for '1 free per age' special ability (diff)
downloadseven-wonders-0b0878a567c0554fbdeb6700724bc20f2c223800.tar.gz
seven-wonders-0b0878a567c0554fbdeb6700724bc20f2c223800.tar.bz2
seven-wonders-0b0878a567c0554fbdeb6700724bc20f2c223800.zip
Add test for Lobby initialization
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/luxons/sevenwonders/game/LobbyTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/org/luxons/sevenwonders/game/LobbyTest.java b/src/test/java/org/luxons/sevenwonders/game/LobbyTest.java
index a8c6ae6e..d8a06575 100644
--- a/src/test/java/org/luxons/sevenwonders/game/LobbyTest.java
+++ b/src/test/java/org/luxons/sevenwonders/game/LobbyTest.java
@@ -51,6 +51,18 @@ public class LobbyTest {
}
@Test
+ public void testId() {
+ Lobby l = new Lobby(5, "Test Game", gameOwner, gameDefinition);
+ assertEquals(5, l.getId());
+ }
+
+ @Test
+ public void testName() {
+ Lobby l = new Lobby(5, "Test Game", gameOwner, gameDefinition);
+ assertEquals("Test Game", l.getName());
+ }
+
+ @Test
public void isOwner_falseWhenNull() {
assertFalse(lobby.isOwner(null));
}
bgstack15