@Test public void testAddDataToTableFromList() throws Exception { offers.setDestinationName("test"); ArrayList<ModelOffers> list = new ArrayList<>(); list.add(offers); offer = new OfferTable(list); assertNotNull(offer.getValueAt(0, 0)); }
@Test public void testSetValueAt() { offer.setValueAt("test", 0, 2); assertNotNull(offer.getValueAt(0, 2)); }
@Test public void testColumnCount() { assertEquals(6, offer.getColumnCount()); }
@Test public void testGetColumnClass() { assertEquals(Integer.class, offer.getColumnClass(2)); }
@Test public void testRowCount() { assertEquals(1, offer.getRowCount()); }