/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 22:10:38 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.Graphics;
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.SegmentBorder;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      SegmentBorder segmentBorder0 = new SegmentBorder(false, false, true, 2, 2, 526, 2);
      // Undeclared exception!
      try { 
        segmentBorder0.drawSegmentBorder((Graphics) null, 2, 0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.SegmentBorder", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      SegmentBorder segmentBorder0 = new SegmentBorder(true, false, true, (-1), (-1), (-1), 0);
      Graphics graphics0 = mock(Graphics.class, new ViolatedAssumptionAnswer());
      // Undeclared exception!
      try { 
        segmentBorder0.drawSegmentBorder(graphics0, (-1), 0);
        fail("Expecting exception: ClassCastException");
      
      } catch(ClassCastException e) {
         //
         // codegen.java.awt.Graphics$MockitoMock$104602466 cannot be cast to java.awt.Graphics2D
         //
         verifyException("uk.ac.sanger.artemis.components.SegmentBorder", e);
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      SegmentBorder segmentBorder0 = new SegmentBorder(true, true, true, (-1683), (-1683), (-1683), (-1683));
      // Undeclared exception!
      try { 
        segmentBorder0.drawSegmentBorder((Graphics) null, (-1683), (-1683));
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.SegmentBorder", e);
      }
  }
}
