/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 22:45:07 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 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.ProcessWatcherEvent;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      ProcessWatcherEvent processWatcherEvent0 = new ProcessWatcherEvent((Process) null, (-158));
      processWatcherEvent0.getProcess();
      assertEquals((-158), processWatcherEvent0.getExitCode());
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      ProcessWatcherEvent processWatcherEvent0 = new ProcessWatcherEvent((Process) null, 0);
      int int0 = processWatcherEvent0.getExitCode();
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      ProcessWatcherEvent processWatcherEvent0 = new ProcessWatcherEvent((Process) null, (-158));
      int int0 = processWatcherEvent0.getExitCode();
      assertEquals((-158), int0);
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      Process process0 = mock(Process.class, new ViolatedAssumptionAnswer());
      ProcessWatcherEvent processWatcherEvent0 = new ProcessWatcherEvent(process0, 4576);
      int int0 = processWatcherEvent0.getExitCode();
      assertEquals(4576, int0);
  }
}
