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.swing.table.rowmodel.TableModelListenerAdaptor;
  import javax.swing.JTable;
  import javax.swing.event.TableModelEvent;
  import javax.swing.table.DefaultTableModel;
  import javax.swing.table.TableModel;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class TableModelListenerAdaptorEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        TableModelListenerAdaptor tableModelListenerAdaptor0 = new TableModelListenerAdaptor();
        tableModelListenerAdaptor0.allChanged();
    }
  
    @Test
    public void test1()  throws Throwable  {
        TableModelListenerAdaptor tableModelListenerAdaptor0 = new TableModelListenerAdaptor();
        Object[] objectArray0 = new Object[9];
        DefaultTableModel defaultTableModel0 = new DefaultTableModel(objectArray0, 0);
        TableModelEvent tableModelEvent0 = new TableModelEvent((TableModel) defaultTableModel0, 0, 0, 0, (-1));
        tableModelListenerAdaptor0.tableChanged(tableModelEvent0);
        assertEquals(0, tableModelEvent0.getLastRow());
    }
  
    @Test
    public void test2()  throws Throwable  {
        TableModelListenerAdaptor tableModelListenerAdaptor0 = new TableModelListenerAdaptor();
        JTable jTable0 = new JTable();
        DefaultTableModel defaultTableModel0 = (DefaultTableModel)jTable0.getModel();
        TableModelEvent tableModelEvent0 = new TableModelEvent((TableModel) defaultTableModel0, 1, 1, 1, 1);
        tableModelListenerAdaptor0.tableChanged(tableModelEvent0);
        assertEquals(1, tableModelEvent0.getLastRow());
    }
  
    @Test
    public void test3()  throws Throwable  {
        TableModelListenerAdaptor tableModelListenerAdaptor0 = new TableModelListenerAdaptor();
        DefaultTableModel defaultTableModel0 = new DefaultTableModel(1725, 1725);
        TableModelEvent tableModelEvent0 = new TableModelEvent((TableModel) defaultTableModel0, Integer.MIN_VALUE, 1829, 1829);
        tableModelListenerAdaptor0.tableChanged(tableModelEvent0);
        assertEquals(-2147483648, tableModelEvent0.getFirstRow());
    }
  
    @Test
    public void test4()  throws Throwable  {
        TableModelListenerAdaptor tableModelListenerAdaptor0 = new TableModelListenerAdaptor();
        DefaultTableModel defaultTableModel0 = new DefaultTableModel();
        TableModelEvent tableModelEvent0 = new TableModelEvent((TableModel) defaultTableModel0, 66, 66, 66, 66);
        tableModelListenerAdaptor0.tableChanged(tableModelEvent0);
        assertEquals(66, tableModelEvent0.getType());
    }
  
    @Test
    public void test5()  throws Throwable  {
        TableModelListenerAdaptor tableModelListenerAdaptor0 = new TableModelListenerAdaptor();
        JTable jTable0 = new JTable();
        DefaultTableModel defaultTableModel0 = (DefaultTableModel)jTable0.getModel();
        TableModelEvent tableModelEvent0 = new TableModelEvent((TableModel) defaultTableModel0);
        tableModelListenerAdaptor0.tableChanged(tableModelEvent0);
        assertEquals(0, tableModelEvent0.getType());
    }
  }
  