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