示例#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());
 }