content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.channel.table;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.channel.table.TableModelListenerHelper;
  import javax.swing.JTable;
  import javax.swing.table.DefaultTableModel;
  import javax.swing.table.TableModel;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class TableModelListenerHelperEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        TableModelListenerHelper tableModelListenerHelper0 = new TableModelListenerHelper();
        Object[][] objectArray0 = new Object[3][8];
        Object[] objectArray1 = new Object[8];
        objectArray1[0] = (Object) tableModelListenerHelper0;
        objectArray1[1] = (Object) tableModelListenerHelper0;
        objectArray1[2] = (Object) tableModelListenerHelper0;
        objectArray1[3] = (Object) tableModelListenerHelper0;
        objectArray1[4] = (Object) tableModelListenerHelper0;
        objectArray1[5] = (Object) tableModelListenerHelper0;
        objectArray1[6] = (Object) tableModelListenerHelper0;
        objectArray1[7] = (Object) tableModelListenerHelper0;
        objectArray0[0] = objectArray1;
        objectArray0[1] = objectArray0[0];
        objectArray0[2] = objectArray0[1];
        JTable jTable0 = new JTable(objectArray0, objectArray0[2]);
        TableModel tableModel0 = jTable0.getModel();
        tableModelListenerHelper0.fireAllChanged(tableModel0);
        assertEquals(8, tableModel0.getColumnCount());
    }
  
    @Test
    public void test1()  throws Throwable  {
        TableModelListenerHelper tableModelListenerHelper0 = new TableModelListenerHelper();
        DefaultTableModel defaultTableModel0 = new DefaultTableModel(957, 957);
        tableModelListenerHelper0.fireValueChanged((TableModel) defaultTableModel0, 1518, 1518);
        assertEquals(957, defaultTableModel0.getColumnCount());
    }
  
    @Test
    public void test2()  throws Throwable  {
        TableModelListenerHelper tableModelListenerHelper0 = new TableModelListenerHelper();
        DefaultTableModel defaultTableModel0 = new DefaultTableModel(957, 957);
        tableModelListenerHelper0.addListener((Object) null);
        // Undeclared exception!
        try {
          tableModelListenerHelper0.fireRowInserted((TableModel) defaultTableModel0, (-364));
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test3()  throws Throwable  {
        TableModelListenerHelper tableModelListenerHelper0 = new TableModelListenerHelper();
        Object[] objectArray0 = new Object[4];
        DefaultTableModel defaultTableModel0 = new DefaultTableModel(objectArray0, 42);
        tableModelListenerHelper0.fireRowDeleted((TableModel) defaultTableModel0, (-1027));
        assertEquals(42, defaultTableModel0.getRowCount());
    }
  
    @Test
    public void test4()  throws Throwable  {
        TableModelListenerHelper tableModelListenerHelper0 = new TableModelListenerHelper();
        DefaultTableModel defaultTableModel0 = new DefaultTableModel(957, 957);
        tableModelListenerHelper0.fireRowChanged((TableModel) defaultTableModel0, (-364));
        assertEquals(957, defaultTableModel0.getRowCount());
    }
  }
  