diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-14 03:54:44 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-14 03:54:44 +0100 |
commit | 0b0878a567c0554fbdeb6700724bc20f2c223800 (patch) | |
tree | d0f5e052300cee5c138aac2132ae7fb95256b579 /src/test | |
parent | Add support for '1 free per age' special ability (diff) | |
download | seven-wonders-0b0878a567c0554fbdeb6700724bc20f2c223800.tar.gz seven-wonders-0b0878a567c0554fbdeb6700724bc20f2c223800.tar.bz2 seven-wonders-0b0878a567c0554fbdeb6700724bc20f2c223800.zip |
Add test for Lobby initialization
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/luxons/sevenwonders/game/LobbyTest.java | 12 |
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)); } |