/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 22:22:48 GMT 2018
 */

package uk.ac.sanger.artemis.components;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.ComponentOrientation;
import java.awt.HeadlessException;
import javax.swing.JFrame;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.YesNoDialog;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = false, useJEE = true) 
public class YesNoDialog_ESTest extends YesNoDialog_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      JFrame jFrame0 = mock(JFrame.class, new ViolatedAssumptionAnswer());
      doReturn((ComponentOrientation) null).when(jFrame0).getComponentOrientation();
      YesNoDialog yesNoDialog0 = new YesNoDialog(jFrame0, "F 1/J-1~K-");
      // Undeclared exception!
      try { 
        yesNoDialog0.getResult();
      
      } catch(NullPointerException e) {
    	  	fail("caught NullPointerException");
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      YesNoDialog yesNoDialog0 = new YesNoDialog((JFrame) null, "");
      // Undeclared exception!
      try { 
        yesNoDialog0.getResult();

      } catch(HeadlessException e) {
    	  	fail("caught HeadlessException");
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      YesNoDialog yesNoDialog0 = new YesNoDialog((JFrame) null, "", "");
  }
}
