/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 20:21:55 GMT 2018
 */

package uk.ac.sanger.artemis.components;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.AlignMatch;
import uk.ac.sanger.artemis.MUMmerComparisonData;
import uk.ac.sanger.artemis.components.AlignmentViewer;
import uk.ac.sanger.artemis.components.FeatureDisplay;
import uk.ac.sanger.artemis.io.Range;

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

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      Range range0 = new Range(139);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, 139, 1024);
      int int0 = AlignmentViewer.getRealQuerySequenceEnd(alignMatch0, (-3043), true);
      assertEquals((-3181), int0);
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      Range range0 = new Range(3749);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, (-1056), 38);
      int int0 = AlignmentViewer.getRealSubjectSequenceStart(alignMatch0, (-103), true);
      assertEquals((-3851), int0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      Range range0 = new Range(0, 13);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, false, 1683, 0);
      int int0 = AlignmentViewer.getRealSubjectSequenceStart(alignMatch0, 0, false);
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      Range range0 = new Range(0, 0);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, false, 0, (-3108));
      int int0 = AlignmentViewer.getRealSubjectSequenceEnd(alignMatch0, 0, false);
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      Range range0 = new Range(0, 0);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, 0, (-3106));
      alignMatch0.setRange(2124, 591, true, false);
      int int0 = AlignmentViewer.getRealSubjectSequenceEnd(alignMatch0, 0, true);
      assertEquals((-2123), int0);
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      Range range0 = new Range(0, 8847);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, false, 0, (-3106));
      int int0 = AlignmentViewer.getRealQuerySequenceStart(alignMatch0, 8847, false);
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      Range range0 = new Range(0, 8847);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, 0, (-3106));
      int int0 = AlignmentViewer.getRealQuerySequenceStart(alignMatch0, (-3106), true);
      assertEquals((-11952), int0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      Range range0 = new Range(0, 0);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, 0, (-3106));
      int int0 = AlignmentViewer.getRealQuerySequenceEnd(alignMatch0, (-3106), false);
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      Range range0 = new Range(1);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, false, (-30000), 1);
      int int0 = AlignmentViewer.getRealQuerySequenceEnd(alignMatch0, 326, false);
      assertEquals(1, int0);
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      // Undeclared exception!
      try { 
        AlignmentViewer.getRealSubjectSequenceEnd((AlignMatch) null, (-4175), true);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.AlignmentViewer", e);
      }
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      // Undeclared exception!
      try { 
        AlignmentViewer.getRealQuerySequenceEnd((AlignMatch) null, 0, true);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.AlignmentViewer", e);
      }
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      Range range0 = new Range(0);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, 0, 0);
      int int0 = AlignmentViewer.getRealQuerySequenceStart(alignMatch0, 0, true);
      assertEquals(1, int0);
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      // Undeclared exception!
      try { 
        AlignmentViewer.getRealQuerySequenceStart((AlignMatch) null, (-44), false);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.AlignmentViewer", e);
      }
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      Range range0 = new Range(0);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, 0, 0);
      int int0 = AlignmentViewer.getRealSubjectSequenceEnd(alignMatch0, 0, true);
      assertEquals(1, int0);
  }

  @Test(timeout = 4000)
  public void test14()  throws Throwable  {
      Range range0 = new Range(38);
      AlignMatch alignMatch0 = new AlignMatch(range0, range0, true, 38, 38);
      int int0 = AlignmentViewer.getRealSubjectSequenceStart(alignMatch0, 38, true);
      assertEquals(1, int0);
  }

  @Test(timeout = 4000)
  public void test15()  throws Throwable  {
      // Undeclared exception!
      try { 
        AlignmentViewer.getRealSubjectSequenceStart((AlignMatch) null, 0, false);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.AlignmentViewer", e);
      }
  }

  @Test(timeout = 4000)
  public void test16()  throws Throwable  {
      MUMmerComparisonData mUMmerComparisonData0 = new MUMmerComparisonData();
      AlignmentViewer alignmentViewer0 = null;
      try {
        alignmentViewer0 = new AlignmentViewer((FeatureDisplay) null, (FeatureDisplay) null, mUMmerComparisonData0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.AlignmentViewer", e);
      }
  }
}
