Пример #1
0
  public void testConvertReferenceList() throws Exception {
    org.intermine.model.fulldata.ReferenceList resRefList = ItemHelper.convert(referenceList);
    resRefList.proxyItem(departmentProxy);

    // referencelists are simple objects so don't have .equals() on id like InterMineObjects
    // need to check each field
    assertEquals(dbReferenceList.getName(), resRefList.getName());
    assertEquals(dbReferenceList.getFieldProxy("item"), resRefList.getFieldProxy("item"));
    assertEquals(dbReferenceList.getRefIds(), resRefList.getRefIds());
  }
Пример #2
0
 public void testConvertFromDbItem() throws Exception {
   assertEquals(item, ItemHelper.convert(dbItem));
 }