content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.swing.panel;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.swing.panel.RootContainers;
  import java.awt.Component;
  import java.awt.event.ContainerEvent;
  import javax.swing.JPanel;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class RootContainersEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.JFRAME;
        // Undeclared exception!
        try {
          rootContainers0.basicSetTitle();
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test1()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.JINTERNAL_FRAME;
        // Undeclared exception!
        try {
          rootContainers0.basicSetTitle();
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test2()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.valueOf("JDIALOG");
        // Undeclared exception!
        try {
          rootContainers0.basicSetTitle();
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test3()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.JWINDOW;
        JPanel jPanel0 = new JPanel(true);
        ContainerEvent containerEvent0 = new ContainerEvent((Component) jPanel0, 1, (Component) jPanel0);
        rootContainers0.componentAdded(containerEvent0);
        assertEquals("JWINDOW", rootContainers0.name());
    }
  
    @Test
    public void test4()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.JWINDOW;
        rootContainers0.basicSetTitle();
        assertEquals(4, rootContainers0.ordinal());
    }
  
    @Test
    public void test5()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.JWINDOW;
        JPanel jPanel0 = new JPanel(true);
        ContainerEvent containerEvent0 = new ContainerEvent((Component) jPanel0, 1, (Component) jPanel0);
        containerEvent0.setSource((Object) true);
        rootContainers0.componentAdded(containerEvent0);
        assertEquals(1, containerEvent0.getID());
    }
  
    @Test
    public void test6()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.JWINDOW;
        JPanel jPanel0 = new JPanel(true);
        ContainerEvent containerEvent0 = new ContainerEvent((Component) jPanel0, 1, (Component) jPanel0);
        containerEvent0.setSource((Object) true);
        rootContainers0.componentRemoved(containerEvent0);
        assertEquals("java.awt.event.ContainerEvent[unknown type,child=null] on true", containerEvent0.toString());
    }
  
    @Test
    public void test7()  throws Throwable  {
        RootContainers rootContainers0 = RootContainers.JWINDOW;
        JPanel jPanel0 = new JPanel(true);
        ContainerEvent containerEvent0 = new ContainerEvent((Component) jPanel0, 1, (Component) jPanel0);
        rootContainers0.componentRemoved(containerEvent0);
        assertEquals("JWINDOW", rootContainers0.name());
    }
  }
  