protected void assertItemValue(Object obj) throws Exception { ArrayList item = (ArrayList) obj; IntItem intItem = (IntItem) item.get(0); TAIntItem taIntItem = (TAIntItem) item.get(1); Assert.areEqual(100, intItem.value()); Assert.areEqual(new Integer(200), intItem.integerValue()); Assert.areEqual(new Integer(300), intItem.object()); Assert.areEqual(100, taIntItem.value()); Assert.areEqual(new Integer(200), taIntItem.integerValue()); Assert.areEqual(new Integer(300), taIntItem.object()); }
protected void assertRetrievedItem(Object obj) throws Exception { ArrayList item = (ArrayList) obj; IntItem intItem = (IntItem) item.get(0); TAIntItem taIntItem = (TAIntItem) item.get(1); Assert.isNotNull(intItem); Assert.isNotNull(taIntItem); Assert.areEqual(100, intItem.value); Assert.areEqual(new Integer(200), intItem.i); Assert.areEqual(new Integer(300), intItem.obj); Assert.areEqual(0, taIntItem.value); isPrimitiveNull(taIntItem.i); Assert.isNull(taIntItem.obj); }