/*
 * This file was automatically generated by EvoSuite
 * Thu Sep 20 12:17:36 GMT 2018
 */

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

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
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.EntryGroup;
import uk.ac.sanger.artemis.Feature;
import uk.ac.sanger.artemis.components.genebuilder.BasicGeneBuilderFrame;
import uk.ac.sanger.artemis.components.genebuilder.ButtonPanel;
import uk.ac.sanger.artemis.io.GenbankStreamFeature;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
public class ButtonPanel_ESTest extends ButtonPanel_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      BasicGeneBuilderFrame basicGeneBuilderFrame0 = mock(BasicGeneBuilderFrame.class, new ViolatedAssumptionAnswer());
      doReturn((Feature) null).when(basicGeneBuilderFrame0).getFeature();
      EntryGroup entryGroup0 = mock(EntryGroup.class, new ViolatedAssumptionAnswer());
      ButtonPanel buttonPanel0 = null;
      try {
        buttonPanel0 = new ButtonPanel(basicGeneBuilderFrame0, entryGroup0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.genebuilder.ButtonPanel", e);
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      EntryGroup entryGroup0 = mock(EntryGroup.class, new ViolatedAssumptionAnswer());
      GenbankStreamFeature genbankStreamFeature0 = new GenbankStreamFeature();
      Feature feature0 = new Feature(genbankStreamFeature0);
      BasicGeneBuilderFrame basicGeneBuilderFrame0 = mock(BasicGeneBuilderFrame.class, new ViolatedAssumptionAnswer());
      doReturn(feature0).when(basicGeneBuilderFrame0).getFeature();
      ButtonPanel buttonPanel0 = new ButtonPanel(basicGeneBuilderFrame0, entryGroup0);
  }
}
