/*
 * This file was automatically generated by EvoSuite
 * Thu Sep 20 14:15:34 GMT 2018
 */

package uk.ac.sanger.artemis;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
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.GotoEvent;
import uk.ac.sanger.artemis.sequence.Marker;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      Marker marker0 = mock(Marker.class, new ViolatedAssumptionAnswer());
      doReturn((String) null).when(marker0).toString();
      GotoEvent gotoEvent0 = new GotoEvent("!z1kO=RS2", marker0);
      Marker marker1 = gotoEvent0.getMarker();
      assertEquals(0, Marker.LISTENER_PRIORITY);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      Marker marker0 = mock(Marker.class, new ViolatedAssumptionAnswer());
      GotoEvent gotoEvent0 = null;
      try {
        gotoEvent0 = new GotoEvent((Object) null, marker0);
        fail("Expecting exception: IllegalArgumentException");
      
      } catch(IllegalArgumentException e) {
         //
         // null source
         //
         verifyException("java.util.EventObject", e);
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      GotoEvent gotoEvent0 = new GotoEvent("", (Marker) null);
      Marker marker0 = gotoEvent0.getMarker();
      assertNull(marker0);
  }
}
