@Test public void testGetLevelInfoEmptyTable() { XPTable t1 = getItem(); CharID id = getCharID(); facet.set(id, t1); assertNull(facet.getLevelInfo(id, 1)); }
@Test public void testGetLevelInfoWrongLevel() { XPTable t1 = getItem(); LevelInfo li = new LevelInfo(); t1.addLevelInfo("2", li); CharID id = getCharID(); facet.set(id, t1); LevelInfo xpt = facet.getLevelInfo(id, 1); assertNull(xpt); }
@Test public void testGetLevelInfoLevel() { XPTable t1 = getItem(); LevelInfo li = new LevelInfo(); t1.addLevelInfo("LEVEL", li); CharID id = getCharID(); facet.set(id, t1); LevelInfo xpt = facet.getLevelInfo(id, 1); assertNotNull(xpt); assertEquals(li, xpt); }
@Test public void testGetLevelInfoNoTable() { CharID id = getCharID(); assertNull(facet.getLevelInfo(id, 1)); }