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