@BeforeClass public static void setUpClass() throws Exception { localIRODSTransfer = new LocalIRODSTransfer(); localIRODSTransfer.setCreatedAt(new Date()); localIRODSTransfer.setGlobalException(""); localIRODSTransfer.setId(new Long(1)); localIRODSTransfer.setIrodsAbsolutePath("/hello/there"); localIRODSTransfer.setTransferEnd(new Date()); localIRODSTransfer.setTransferStatus(TransferStatus.OK); localIRODSTransfer.setTransferHost("host"); localIRODSTransfer.setTransferPort(1247); LocalIRODSTransferItem transferItem = new LocalIRODSTransferItem(); transferItem.setError(false); transferItem.setFile(true); transferItem.setLocalIRODSTransfer(localIRODSTransfer); transferItem.setSourceFileAbsolutePath("source"); transferItem.setTargetFileAbsolutePath("target"); transferItem.setTransferredAt(new Date()); localIRODSTransfer.getLocalIRODSTransferItems().add(transferItem); localIRODSTransferItem = transferItem; detailTableModel = new QueueManagerDetailTableModel( new ArrayList(localIRODSTransfer.getLocalIRODSTransferItems())); }
/** Test of getValueAt method, of class QueueManagerDetailTableModel. */ @Test public void testGetValueAt() { System.out.println("getValueAt"); int rowIndex = 0; int columnIndex = 3; Object expResult = localIRODSTransferItem.getSourceFileAbsolutePath(); Object result = detailTableModel.getValueAt(rowIndex, columnIndex); assertEquals(expResult, result); }