@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); }
@Override protected XPTable getItem() { XPTable xpt = new XPTable(); xpt.setName("XPTable" + n++); return xpt; }