content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.application.menu;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.application.menu.ActionMenuBuilder;
  import javax.swing.Action;
  import javax.swing.JMenu;
  import javax.swing.JMenuBar;
  import javax.swing.JMenuItem;
  import javax.swing.JPopupMenu;
  import javax.swing.JRadioButtonMenuItem;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class ActionMenuBuilderEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        Object[][][] objectArray0 = new Object[8][7][3];
        JMenuBar jMenuBar0 = actionMenuBuilder0.buildMenuBar(objectArray0);
        assertEquals(8, jMenuBar0.countComponents());
        assertNotNull(jMenuBar0);
    }
  
    @Test
    public void test1()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        Object[][] objectArray0 = new Object[8][8];
        Object[] objectArray1 = new Object[1];
        objectArray1[0] = (Object) "select-paragraph";
        objectArray0[0] = objectArray1;
        JMenu jMenu0 = new JMenu();
        actionMenuBuilder0.buildMenu(jMenu0, objectArray0);
        assertEquals(7, jMenu0.getMenuComponentCount());
        assertEquals("select-paragraph", jMenu0.getLabel());
    }
  
    @Test
    public void test2()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        Object[][] objectArray0 = new Object[8][4];
        Object[] objectArray1 = new Object[1];
        objectArray0[0] = objectArray1;
        // Undeclared exception!
        try {
          actionMenuBuilder0.buildMenu((Object) "SmallIcon", objectArray0);
          fail("Expecting exception: ArrayIndexOutOfBoundsException");
        } catch(ArrayIndexOutOfBoundsException e) {
          /*
           * 1
           */
        }
    }
  
    @Test
    public void test3()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        Object[][] objectArray0 = new Object[8][8];
        Object[] objectArray1 = new Object[1];
        objectArray1[0] = (Object) "select-paragraph";
        objectArray0[0] = objectArray1;
        JPopupMenu jPopupMenu0 = actionMenuBuilder0.buildPopup(objectArray0);
        assertNotNull(jPopupMenu0);
        assertEquals(7, jPopupMenu0.countComponents());
    }
  
    @Test
    public void test4()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        JRadioButtonMenuItem jRadioButtonMenuItem0 = new JRadioButtonMenuItem();
        JMenu jMenu0 = new JMenu((Action) null);
        Object[] objectArray0 = new Object[12];
        objectArray0[2] = (Object) jMenu0;
        actionMenuBuilder0.addMenuItem(objectArray0[2], (JMenuItem) jRadioButtonMenuItem0);
        assertEquals("", jRadioButtonMenuItem0.getText());
    }
  
    @Test
    public void test5()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        // Undeclared exception!
        try {
          actionMenuBuilder0.addMenuItem((Object) actionMenuBuilder0, (JMenuItem) null);
          fail("Expecting exception: RuntimeException");
        } catch(RuntimeException e) {
          /*
           * Unrecognized menu class: com.lts.application.menu.ActionMenuBuilder
           */
        }
    }
  
    @Test
    public void test6()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        // Undeclared exception!
        try {
          actionMenuBuilder0.addSeparator((Object) "^gJap<*,~g?4");
          fail("Expecting exception: RuntimeException");
        } catch(RuntimeException e) {
          /*
           * Unrecognized menu class: java.lang.String
           */
        }
    }
  
    @Test
    public void test7()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        JMenu jMenu0 = new JMenu("^gJap<*,~g?4", false);
        actionMenuBuilder0.addSeparator((Object) jMenu0);
        assertEquals(1, jMenu0.getItemCount());
        assertEquals(1, jMenu0.getMenuComponentCount());
    }
  
    @Test
    public void test8()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        JPopupMenu jPopupMenu0 = new JPopupMenu("BDSMSo>s");
        actionMenuBuilder0.addSeparator((Object) jPopupMenu0);
        assertEquals(1, jPopupMenu0.countComponents());
        assertEquals(1, jPopupMenu0.getComponentCount());
    }
  
    @Test
    public void test9()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        JMenu jMenu0 = new JMenu((Action) null);
        actionMenuBuilder0.setMenuTitle((Object) jMenu0, "Avy5;");
        assertEquals(false, jMenu0.requestDefaultFocus());
    }
  
    @Test
    public void test10()  throws Throwable  {
        ActionMenuBuilder actionMenuBuilder0 = new ActionMenuBuilder();
        Object[][] objectArray0 = new Object[8][8];
        Object[] objectArray1 = new Object[1];
        objectArray1[0] = (Object) "select-paragraph";
        objectArray0[0] = objectArray1;
        // Undeclared exception!
        try {
          actionMenuBuilder0.buildMenu((Object) "select-paragraph", objectArray0);
          fail("Expecting exception: RuntimeException");
        } catch(RuntimeException e) {
          /*
           * Unrecognized menu class: java.lang.String
           */
        }
    }
  }
  