From 0b0878a567c0554fbdeb6700724bc20f2c223800 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sat, 14 Jan 2017 03:54:44 +0100 Subject: Add test for Lobby initialization --- src/test/java/org/luxons/sevenwonders/game/LobbyTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/test/java') 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 @@ -50,6 +50,18 @@ public class LobbyTest { lobby = new Lobby(0, "Test Game", gameOwner, gameDefinition); } + @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)); -- cgit