Example #1
0
 @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));
 }
Example #2
0
 @Test
 public void testSetValueAt() {
   offer.setValueAt("test", 0, 2);
   assertNotNull(offer.getValueAt(0, 2));
 }
Example #3
0
 @Test
 public void testColumnCount() {
   assertEquals(6, offer.getColumnCount());
 }
Example #4
0
 @Test
 public void testGetColumnClass() {
   assertEquals(Integer.class, offer.getColumnClass(2));
 }
Example #5
0
 @Test
 public void testRowCount() {
   assertEquals(1, offer.getRowCount());
 }