示例#1
0
 @Test
 public void testGetLevelInfoEmptyTable() {
   XPTable t1 = getItem();
   CharID id = getCharID();
   facet.set(id, t1);
   assertNull(facet.getLevelInfo(id, 1));
 }
示例#2
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);
 }
示例#3
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);
 }
示例#4
0
 @Test
 public void testGetLevelInfoNoTable() {
   CharID id = getCharID();
   assertNull(facet.getLevelInfo(id, 1));
 }