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

package uk.ac.sanger.artemis.components;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.HeadlessException;
import java.awt.datatransfer.Clipboard;
import javax.swing.JScrollPane;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.Entry;
import uk.ac.sanger.artemis.Feature;
import uk.ac.sanger.artemis.FeatureVector;
import uk.ac.sanger.artemis.Selection;
import uk.ac.sanger.artemis.SimpleEntryGroup;
import uk.ac.sanger.artemis.components.ContigTool;
import uk.ac.sanger.artemis.components.FeatureDisplay;
import uk.ac.sanger.artemis.io.FastaStreamSequence;
import uk.ac.sanger.artemis.io.Sequence;
import uk.ac.sanger.artemis.sequence.Bases;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      Bases bases0 = new Bases((Sequence) null);
      Entry entry0 = Entry.newEntry(bases0);
      FeatureVector featureVector0 = entry0.checkForNonEMBLKeys();
      Clipboard clipboard0 = new Clipboard("RW@#EpQM]vgS");
      Selection selection0 = new Selection(clipboard0);
      ContigTool contigTool0 = null;
      try {
        contigTool0 = new ContigTool(featureVector0, (FeatureDisplay) null, (JScrollPane) null, selection0);
        fail("Expecting exception: IndexOutOfBoundsException");
      
      } catch(IndexOutOfBoundsException e) {
         //
         // Index: 0, Size: 0
         //
         verifyException("java.util.ArrayList", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      FeatureVector featureVector0 = new FeatureVector();
      FastaStreamSequence fastaStreamSequence0 = new FastaStreamSequence("=-#W'?6p{BGyv1%;9X@", "mb");
      Bases bases0 = new Bases(fastaStreamSequence0);
      SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
      Entry entry0 = simpleEntryGroup0.createEntry((String) null);
      Feature feature0 = entry0.createFeature();
      featureVector0.addElementAtEnd(feature0);
      Clipboard clipboard0 = new Clipboard(" |$n5");
      Selection selection0 = new Selection(clipboard0);
      ContigTool contigTool0 = null;
      try {
        contigTool0 = new ContigTool(featureVector0, (FeatureDisplay) null, (JScrollPane) null, selection0);
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("java.awt.dnd.DragSource", e);
      }
  }
}
