content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.swing.thread;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.swing.thread.BlockThread;
  import java.awt.Component;
  import java.awt.event.ComponentEvent;
  import java.awt.event.ContainerEvent;
  import javax.swing.JCheckBox;
  import javax.swing.JInternalFrame;
  import javax.swing.JTextArea;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class BlockThreadEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        BlockThread blockThread0 = new BlockThread((Component) null);
        // Undeclared exception!
        try {
          blockThread0.run();
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test1()  throws Throwable  {
        JCheckBox jCheckBox0 = new JCheckBox("");
        BlockThread blockThread0 = new BlockThread((Component) jCheckBox0);
        // Undeclared exception!
        try {
          blockThread0.display((Component) null);
          fail("Expecting exception: IllegalStateException");
        } catch(IllegalStateException e) {
          /*
           * No component has been set to display
           */
        }
    }
  
    @Test
    public void test2()  throws Throwable  {
        BlockThread blockThread0 = new BlockThread((Component) null);
        blockThread0.afterDisplay();
    }
  
    @Test
    public void test3()  throws Throwable  {
        JCheckBox jCheckBox0 = new JCheckBox("");
        BlockThread blockThread0 = new BlockThread((Component) jCheckBox0);
        JInternalFrame jInternalFrame0 = new JInternalFrame("", false, true, false);
        ContainerEvent containerEvent0 = new ContainerEvent((Component) jInternalFrame0, (-1), (Component) jInternalFrame0);
        blockThread0.componentHidden((ComponentEvent) containerEvent0);
        assertEquals("unknown type,child=null", containerEvent0.paramString());
    }
  
    @Test
    public void test4()  throws Throwable  {
        JTextArea jTextArea0 = new JTextArea("Rl/P_i ", 649, 649);
        BlockThread blockThread0 = new BlockThread((Component) jTextArea0);
        blockThread0.display((Component) jTextArea0);
        assertEquals(true, jTextArea0.isRequestFocusEnabled());
    }
  }
  