content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.swing.menu;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.LTSException;
  import com.lts.swing.menu.DefaultMenuBuilder;
  import com.lts.swing.menu.MenuWrapper;
  import com.lts.swing.menu.NewMenuNode;
  import com.lts.util.TreeNode;
  import javax.swing.JMenu;
  import javax.swing.JPopupMenu;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class MenuBuilderEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        String[][][] stringArray0 = new String[5][8][10];
        try {
          defaultMenuBuilder0.buildMenuBar((Object) "SelectedFilesChangedProperty", stringArray0);
          fail("Expecting exception: LTSException");
        } catch(LTSException e) {
          /*
           * not implemented
           */
        }
    }
  
    @Test
    public void test1()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        String[][] stringArray0 = new String[4][10];
        String[] stringArray1 = new String[6];
        stringArray1[0] = "";
        stringArray0[0] = stringArray1;
        stringArray0[1] = stringArray0[0];
        stringArray0[2] = stringArray0[0];
        stringArray0[3] = stringArray0[2];
        // Undeclared exception!
        try {
          defaultMenuBuilder0.buildPopupMenu((Object) null, stringArray0);
          fail("Expecting exception: IllegalArgumentException");
        } catch(IllegalArgumentException e) {
          /*
           * StringEquals is not supposed to work on a null caller
           */
        }
    }
  
    @Test
    public void test2()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        String[][] stringArray0 = new String[6][2];
        String[] stringArray1 = new String[5];
        stringArray1[0] = "<|[_K,Qc`/K!3YrqV";
        stringArray1[1] = "<|[_K,Qc`/K!3YrqV";
        stringArray0[0] = stringArray1;
        stringArray0[1] = stringArray0[0];
        stringArray0[2] = stringArray0[1];
        stringArray0[3] = stringArray0[0];
        stringArray0[4] = stringArray0[3];
        stringArray0[5] = stringArray0[0];
        try {
          defaultMenuBuilder0.buildPopupMenu((Object) "<|[_K,Qc`/K!3YrqV", stringArray0);
          fail("Expecting exception: LTSException");
        } catch(LTSException e) {
          /*
           * The method, <|[_K,Qc`/K!3YrqV, does not exist in class java.lang.String
           */
        }
    }
  
    @Test
    public void test3()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        // Undeclared exception!
        try {
          defaultMenuBuilder0.processLeaf("<separator>", "<separator>");
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test4()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        JMenu jMenu0 = new JMenu("piBHPGwfJun", false);
        MenuWrapper menuWrapper0 = new MenuWrapper(jMenu0);
        NewMenuNode newMenuNode0 = new NewMenuNode("piBHPGwfJun");
        defaultMenuBuilder0.populateMenu(menuWrapper0, newMenuNode0);
        assertEquals("piBHPGwfJun", newMenuNode0.toString());
    }
  
    @Test
    public void test5()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        MenuWrapper menuWrapper0 = new MenuWrapper((JPopupMenu) null);
        NewMenuNode newMenuNode0 = new NewMenuNode();
        newMenuNode0.addChild((TreeNode) null);
        // Undeclared exception!
        try {
          defaultMenuBuilder0.populateMenu(menuWrapper0, newMenuNode0);
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test6()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        String[][] stringArray0 = new String[4][2];
        String[] stringArray1 = new String[1];
        stringArray0[0] = stringArray1;
        // Undeclared exception!
        try {
          defaultMenuBuilder0.buildMenuBar((Object) "mnemonic", stringArray0);
          fail("Expecting exception: IllegalArgumentException");
        } catch(IllegalArgumentException e) {
          /*
           * StringEquals is not supposed to work on a null caller
           */
        }
    }
  
    @Test
    public void test7()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        String[][] stringArray0 = new String[8][5];
        String[] stringArray1 = new String[17];
        stringArray0[0] = stringArray1;
        stringArray1[0] = "<separator>";
        try {
          defaultMenuBuilder0.preProcessSpec(stringArray0);
          fail("Expecting exception: LTSException");
        } catch(LTSException e) {
          /*
           * Invalid menu specification: first row cannot be a separator
           */
        }
    }
  
    @Test
    public void test8()  throws Throwable  {
        DefaultMenuBuilder defaultMenuBuilder0 = new DefaultMenuBuilder();
        String[][] stringArray0 = new String[9][5];
        String[] stringArray1 = new String[7];
        stringArray1[0] = ", is not one of the child nodes of ";
        stringArray0[0] = stringArray1;
        String[] stringArray2 = new String[4];
        stringArray2[0] = "<separator>";
        stringArray0[1] = stringArray2;
        // Undeclared exception!
        try {
          defaultMenuBuilder0.preProcessSpec(stringArray0);
          fail("Expecting exception: IllegalArgumentException");
        } catch(IllegalArgumentException e) {
          /*
           * StringEquals is not supposed to work on a null caller
           */
        }
    }
  }
  