content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.swing.combobox;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.swing.combobox.SimpleComboBox;
  import com.lts.swing.combobox.SimpleComboBoxModel;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class SimpleComboBoxEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        SimpleComboBoxModel simpleComboBoxModel0 = new SimpleComboBoxModel();
        SimpleComboBox simpleComboBox0 = new SimpleComboBox(simpleComboBoxModel0);
        simpleComboBox0.setSelectedValue((Object) "model");
        assertEquals(0.5F, simpleComboBox0.getAlignmentY(), 0.01F);
    }
  
    @Test
    public void test1()  throws Throwable  {
        SimpleComboBox simpleComboBox0 = null;
        try {
          simpleComboBox0 = new SimpleComboBox((SimpleComboBoxModel) null);
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test2()  throws Throwable  {
        Object[][] objectArray0 = new Object[3][6];
        SimpleComboBoxModel simpleComboBoxModel0 = new SimpleComboBoxModel(objectArray0);
        SimpleComboBox simpleComboBox0 = new SimpleComboBox(simpleComboBoxModel0);
        int int0 = simpleComboBox0.getSelectedInt();
        assertEquals((-1), int0);
    }
  
    @Test
    public void test3()  throws Throwable  {
        SimpleComboBoxModel simpleComboBoxModel0 = new SimpleComboBoxModel();
        SimpleComboBox simpleComboBox0 = new SimpleComboBox(simpleComboBoxModel0);
        Object[][] objectArray0 = new Object[4][8];
        Object[] objectArray1 = new Object[8];
        objectArray1[1] = (Object) "model";
        objectArray0[1] = objectArray1;
        objectArray0[2] = objectArray0[1];
        objectArray0[3] = objectArray0[2];
        simpleComboBoxModel0.initialize(objectArray0);
        // Undeclared exception!
        try {
          simpleComboBox0.getSelectedInt();
          fail("Expecting exception: IllegalArgumentException");
        } catch(IllegalArgumentException e) {
        }
    }
  
    @Test
    public void test4()  throws Throwable  {
        SimpleComboBoxModel simpleComboBoxModel0 = new SimpleComboBoxModel();
        SimpleComboBox simpleComboBox0 = new SimpleComboBox(simpleComboBoxModel0);
        simpleComboBoxModel0.add((Object) null, (Object) "javax.swing.JInternalFrame[,0,0,0x0,invalid,hidden,layout=javax.swing.plaf.basic.BasicInternalFrameUI$Handler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.metal.MetalBorders$InternalFrameBorder@7ed841a6,flags=264,maximumSize=,minimumSize=,preferredSize=,closable=false,defaultCloseOperation=DISPOSE_ON_CLOSE,desktopIcon=javax.swing.JInternalFrame$JDesktopIcon[,0,0,160x31,invalid,hidden,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@5bfdf8c8,flags=8,maximumSize=,minimumSize=,preferredSize=],frameIcon=sun.swing.ImageIconUIResource@8fc0e0b,iconable=false,isClosed=false,isIcon=false,isMaximum=false,isSelected=false,maximizable=false,opened=false,resizable=false,rootPane=javax.swing.JRootPane[,0,0,0x0,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true,title=]");
        // Undeclared exception!
        try {
          simpleComboBox0.getSelectedLong();
          fail("Expecting exception: IllegalArgumentException");
        } catch(IllegalArgumentException e) {
        }
    }
  
    @Test
    public void test5()  throws Throwable  {
        SimpleComboBoxModel simpleComboBoxModel0 = new SimpleComboBoxModel();
        SimpleComboBox simpleComboBox0 = new SimpleComboBox(simpleComboBoxModel0);
        long long0 = simpleComboBox0.getSelectedLong();
        assertEquals((-1L), long0);
    }
  }
  