/*
 * This file was automatically generated by EvoSuite
 * Thu Sep 20 11:51:04 GMT 2018
 */

package uk.ac.sanger.artemis.components;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.HeadlessException;
import java.awt.event.ActionListener;
import javax.swing.Action;
import javax.swing.JMenu;
import javax.swing.TransferHandler;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.System;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.LogViewer;
import uk.ac.sanger.artemis.components.Splash;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
public class Splash_ESTest extends Splash_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      // Undeclared exception!
      try { 
        Splash.makeMenuItem((JMenu) null, "jx'p$m1S#JLS$", (ActionListener) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.Splash", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      // Undeclared exception!
      try { 
        Splash.initLogger();
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
         
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      JMenu jMenu0 = new JMenu("<UkE6`|zt5EYD9cWp", true);
      Action action0 = TransferHandler.getCutAction();
      Splash.makeMenuItem(jMenu0, "[o#v;-0j#2r1q|$(%b5", action0);
      assertFalse(jMenu0.isFocusTraversalPolicySet());
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      // Undeclared exception!
      try { 
        Splash.exitApp();
        fail("Expecting exception: System.SystemExitException");
      
      } catch(System.SystemExitException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("org.evosuite.runtime.System", e);
      }
  }

  @Test(timeout = 4000)
  public void test4()  throws Throwable  {
      Splash.processJnlpAttributes();
  }

  @Test(timeout = 4000)
  public void test5()  throws Throwable  {
      Splash.appendToLog("<UkE6`|zt5EYD9cWp");
      Splash.appendToLog("e__s7Z>");
  }

  @Test(timeout = 4000)
  public void test6()  throws Throwable  {
      // Undeclared exception!
      try { 
        Splash.setWorkingDirectory();
      
      } catch(Exception e) {
    	  	fail("Caught exception: " + e.getMessage());
      }
  }

  @Test(timeout = 4000)
  public void test7()  throws Throwable  {
      // Undeclared exception!
      try { 
        Splash.showLog();
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
         
      }
  }

  @Test(timeout = 4000)
  public void test8()  throws Throwable  {
      LogViewer logViewer0 = (LogViewer)Splash.getLogger();
      assertEquals(0, logViewer0.maxLogLines);
  }
}
