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