/*
 * This file was automatically generated by EvoSuite
 * Fri Jun 08 18:14:18 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 org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.Feature;
import uk.ac.sanger.artemis.FeatureVector;
import uk.ac.sanger.artemis.SimpleEntryGroup;
import uk.ac.sanger.artemis.components.QualifierEditor;
import uk.ac.sanger.artemis.io.GenbankStreamFeature;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      FeatureVector featureVector0 = new FeatureVector();
      featureVector0.insertElementAt((Feature) null, 0);
      SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
      QualifierEditor qualifierEditor0 = null;
      try {
        qualifierEditor0 = new QualifierEditor(featureVector0, simpleEntryGroup0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.QualifierEditor", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      FeatureVector featureVector0 = new FeatureVector();
      GenbankStreamFeature genbankStreamFeature0 = new GenbankStreamFeature();
      Feature feature0 = new Feature(genbankStreamFeature0);
      featureVector0.addElementAtEnd(feature0);
      featureVector0.insertElementAfter(feature0, feature0);
      SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
      QualifierEditor qualifierEditor0 = null;
      try {
        qualifierEditor0 = new QualifierEditor(featureVector0, simpleEntryGroup0);
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("java.awt.GraphicsEnvironment", e);
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      FeatureVector featureVector0 = new FeatureVector();
      SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
      QualifierEditor qualifierEditor0 = null;
      try {
        qualifierEditor0 = new QualifierEditor(featureVector0, simpleEntryGroup0);
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("java.awt.GraphicsEnvironment", e);
      }
  }
}
