/*
 * This file was automatically generated by EvoSuite
 * Fri Jun 08 19:15:08 GMT 2018
 */

package uk.ac.sanger.artemis.components.genebuilder.gff;

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.components.genebuilder.BasicGeneBuilderFrame;
import uk.ac.sanger.artemis.components.genebuilder.gff.BasicPropertiesPanel;
import uk.ac.sanger.artemis.io.ChadoCanonicalGene;
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 BasicPropertiesPanel_ESTest extends BasicPropertiesPanel_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      ChadoCanonicalGene chadoCanonicalGene0 = new ChadoCanonicalGene();
      GenbankStreamFeature genbankStreamFeature0 = new GenbankStreamFeature();
      chadoCanonicalGene0.setGene(genbankStreamFeature0);
      BasicPropertiesPanel basicPropertiesPanel0 = null;
      try {
        basicPropertiesPanel0 = new BasicPropertiesPanel(chadoCanonicalGene0, (BasicGeneBuilderFrame) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.genebuilder.gff.PropertiesPanel", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      ChadoCanonicalGene chadoCanonicalGene0 = new ChadoCanonicalGene();
      GenbankStreamFeature genbankStreamFeature0 = new GenbankStreamFeature();
      genbankStreamFeature0.setUserData(chadoCanonicalGene0);
      chadoCanonicalGene0.setGene(genbankStreamFeature0);
      BasicPropertiesPanel basicPropertiesPanel0 = null;
      try {
        basicPropertiesPanel0 = new BasicPropertiesPanel(chadoCanonicalGene0, (BasicGeneBuilderFrame) null);
        fail("Expecting exception: ClassCastException");
      
      } catch(ClassCastException e) {
         //
         // uk.ac.sanger.artemis.io.ChadoCanonicalGene cannot be cast to uk.ac.sanger.artemis.Feature
         //
         verifyException("uk.ac.sanger.artemis.components.genebuilder.gff.BasicPropertiesPanel", e);
      }
  }
}
