/*
 * This file was automatically generated by EvoSuite
 * Fri Jun 08 18:23:30 GMT 2018
 */

package uk.ac.sanger.artemis.components;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.datatransfer.DataFlavor;
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.Feature;
import uk.ac.sanger.artemis.components.TransferableContig;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      TransferableContig transferableContig0 = new TransferableContig((Feature) null);
      TransferableContig.contig_flavors = null;
      DataFlavor[] dataFlavorArray0 = transferableContig0.getTransferDataFlavors();
      assertNull(dataFlavorArray0);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      TransferableContig transferableContig0 = new TransferableContig(feature0);
      DataFlavor[] dataFlavorArray0 = new DataFlavor[0];
      TransferableContig.contig_flavors = dataFlavorArray0;
      DataFlavor[] dataFlavorArray1 = transferableContig0.getTransferDataFlavors();
      assertEquals(0, dataFlavorArray1.length);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      TransferableContig transferableContig0 = new TransferableContig(feature0);
      // Undeclared exception!
      try { 
        transferableContig0.isDataFlavorSupported((DataFlavor) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.TransferableContig", e);
      }
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      TransferableContig transferableContig0 = new TransferableContig(feature0);
      // Undeclared exception!
      try { 
        transferableContig0.getTransferData((DataFlavor) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.TransferableContig", e);
      }
  }

  @Test(timeout = 4000)
  public void test4()  throws Throwable  {
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      TransferableContig transferableContig0 = new TransferableContig(feature0);
      Object object0 = transferableContig0.getTransferData(transferableContig0.TRANSFERABLECONTIG);
      assertSame(transferableContig0, object0);
  }

  @Test(timeout = 4000)
  public void test5()  throws Throwable  {
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      TransferableContig transferableContig0 = new TransferableContig(feature0);
      DataFlavor[] dataFlavorArray0 = transferableContig0.getTransferDataFlavors();
      assertEquals(1, dataFlavorArray0.length);
  }

  @Test(timeout = 4000)
  public void test6()  throws Throwable  {
      Feature feature0 = mock(Feature.class, new ViolatedAssumptionAnswer());
      TransferableContig transferableContig0 = new TransferableContig(feature0);
      boolean boolean0 = transferableContig0.isDataFlavorSupported(transferableContig0.TRANSFERABLECONTIG);
      assertTrue(boolean0);
  }
}
