content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.swing.table.rowmodel;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.caloriecount.ui.entry.EntryRowModel;
  import com.lts.caloriecount.ui.foodwin.FoodRowModel;
  import com.lts.swing.table.rowmodel.ListTableBridge;
  import com.lts.swing.table.rowmodel.RowModel;
  import com.lts.util.notifyinglist.ListEvent;
  import com.lts.util.notifyinglist.NotifyingList;
  import com.lts.util.notifyinglist.NotifyingListAdaptor;
  import com.lts.util.notifyinglist.OtherNotifyingListAdaptor;
  import java.util.List;
  import javax.swing.JTable;
  import javax.swing.event.TableModelListener;
  import javax.swing.table.TableModel;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class ListTableBridgeEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        OtherNotifyingListAdaptor<Integer> otherNotifyingListAdaptor0 = new OtherNotifyingListAdaptor<Integer>();
        FoodRowModel foodRowModel0 = new FoodRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) otherNotifyingListAdaptor0, (RowModel) foodRowModel0);
        // Undeclared exception!
        try {
          listTableBridge0.isCellEditable((-642), (-642));
          fail("Expecting exception: ArrayIndexOutOfBoundsException");
        } catch(ArrayIndexOutOfBoundsException e) {
          /*
           * -642
           */
        }
    }
  
    @Test
    public void test1()  throws Throwable  {
        FoodRowModel foodRowModel0 = new FoodRowModel();
        NotifyingListAdaptor<Object> notifyingListAdaptor0 = new NotifyingListAdaptor<Object>();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) notifyingListAdaptor0, (RowModel) foodRowModel0);
        int int0 = listTableBridge0.getRowCount();
        assertEquals(0, int0);
    }
  
    @Test
    public void test2()  throws Throwable  {
        NotifyingListAdaptor<Object> notifyingListAdaptor0 = new NotifyingListAdaptor<Object>();
        EntryRowModel entryRowModel0 = new EntryRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) notifyingListAdaptor0, (RowModel) entryRowModel0);
        assertNotNull(listTableBridge0);
        
        JTable jTable0 = new JTable((TableModel) listTableBridge0);
        assertNotNull(jTable0);
        
        listTableBridge0.removeTableModelListener((TableModelListener) jTable0);
        assertEquals(3, listTableBridge0.getColumnCount());
        assertEquals(3, jTable0.getColumnCount());
    }
  
    @Test
    public void test3()  throws Throwable  {
        FoodRowModel foodRowModel0 = new FoodRowModel();
        NotifyingListAdaptor<Object> notifyingListAdaptor0 = new NotifyingListAdaptor<Object>();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) notifyingListAdaptor0, (RowModel) foodRowModel0);
        // Undeclared exception!
        try {
          listTableBridge0.setValueAt((Object) foodRowModel0, 10, 10);
          fail("Expecting exception: IndexOutOfBoundsException");
        } catch(IndexOutOfBoundsException e) {
          /*
           * Index: 10, Size: 0
           */
        }
    }
  
    @Test
    public void test4()  throws Throwable  {
        OtherNotifyingListAdaptor<Integer> otherNotifyingListAdaptor0 = new OtherNotifyingListAdaptor<Integer>();
        FoodRowModel foodRowModel0 = new FoodRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) otherNotifyingListAdaptor0, (RowModel) foodRowModel0);
        ListEvent.EventType listEvent_EventType0 = ListEvent.EventType.Delete;
        ListEvent listEvent0 = new ListEvent(listEvent_EventType0, (-642), (Object) "ShortDescription");
        listTableBridge0.listEvent(listEvent0);
        assertEquals((-642), listEvent0.index);
    }
  
    @Test
    public void test5()  throws Throwable  {
        NotifyingListAdaptor<String> notifyingListAdaptor0 = new NotifyingListAdaptor<String>();
        EntryRowModel entryRowModel0 = new EntryRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) notifyingListAdaptor0, (RowModel) entryRowModel0);
        // Undeclared exception!
        try {
          listTableBridge0.getValueAt((-17), (-17));
          fail("Expecting exception: ArrayIndexOutOfBoundsException");
        } catch(ArrayIndexOutOfBoundsException e) {
        }
    }
  
    @Test
    public void test6()  throws Throwable  {
        NotifyingListAdaptor<String> notifyingListAdaptor0 = new NotifyingListAdaptor<String>((List<String>) null);
        EntryRowModel entryRowModel0 = new EntryRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) notifyingListAdaptor0, (RowModel) entryRowModel0);
        ListEvent.EventType listEvent_EventType0 = ListEvent.EventType.AllChanged;
        ListEvent listEvent0 = new ListEvent(listEvent_EventType0, 0, (Object) "javax.swing.Box[,0,0,0x0,invalid,layout=javax.swing.BoxLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]");
        listTableBridge0.listEvent(listEvent0);
        assertEquals(3, listTableBridge0.getColumnCount());
    }
  
    @Test
    public void test7()  throws Throwable  {
        NotifyingListAdaptor<String> notifyingListAdaptor0 = new NotifyingListAdaptor<String>();
        EntryRowModel entryRowModel0 = new EntryRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) notifyingListAdaptor0, (RowModel) entryRowModel0);
        boolean boolean0 = notifyingListAdaptor0.add("&u*TM4UPi13?/");
        assertEquals(true, boolean0);
    }
  
    @Test
    public void test8()  throws Throwable  {
        OtherNotifyingListAdaptor<ListTableBridge> otherNotifyingListAdaptor0 = new OtherNotifyingListAdaptor<ListTableBridge>();
        FoodRowModel foodRowModel0 = new FoodRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) otherNotifyingListAdaptor0, (RowModel) foodRowModel0);
        // Undeclared exception!
        try {
          listTableBridge0.getColumnClass((-1063));
          fail("Expecting exception: ArrayIndexOutOfBoundsException");
        } catch(ArrayIndexOutOfBoundsException e) {
          /*
           * -1063
           */
        }
    }
  
    @Test
    public void test9()  throws Throwable  {
        OtherNotifyingListAdaptor<ListTableBridge> otherNotifyingListAdaptor0 = new OtherNotifyingListAdaptor<ListTableBridge>();
        FoodRowModel foodRowModel0 = new FoodRowModel();
        ListTableBridge listTableBridge0 = new ListTableBridge((NotifyingList) otherNotifyingListAdaptor0, (RowModel) foodRowModel0);
        ListEvent.EventType listEvent_EventType0 = ListEvent.EventType.Update;
        ListEvent listEvent0 = new ListEvent(listEvent_EventType0);
        listTableBridge0.listEvent(listEvent0);
        assertEquals(0, listTableBridge0.getRowCount());
    }
  }
  