/*
 * This file was automatically generated by EvoSuite
 * Fri Jun 08 16:48:29 GMT 2018
 */

package uk.ac.sanger.artemis;

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.EntrySource;
import uk.ac.sanger.artemis.EntrySourceVector;

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

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      entrySourceVector0.addElement((EntrySource) null);
      int int0 = entrySourceVector0.size();
      assertEquals(1, int0);
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      entrySourceVector0.add((EntrySource) null);
      boolean boolean0 = entrySourceVector0.removeElement((EntrySource) null);
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      entrySourceVector0.addElement((EntrySource) null);
      int int0 = entrySourceVector0.indexOf((EntrySource) null);
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      entrySourceVector0.addElement((EntrySource) null);
      EntrySource entrySource0 = entrySourceVector0.elementAt(0);
      assertNull(entrySource0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      int int0 = entrySourceVector0.indexOf((EntrySource) null);
      assertEquals((-1), int0);
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      boolean boolean0 = entrySourceVector0.contains((EntrySource) null);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      entrySourceVector0.add((EntrySource) null);
      boolean boolean0 = entrySourceVector0.contains((EntrySource) null);
      assertEquals(1, entrySourceVector0.size());
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      boolean boolean0 = entrySourceVector0.removeElement((EntrySource) null);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      entrySourceVector0.removeAllElements();
      assertEquals(0, entrySourceVector0.size());
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      Object object0 = entrySourceVector0.clone();
      assertNotSame(object0, entrySourceVector0);
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      int int0 = entrySourceVector0.size();
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      // Undeclared exception!
      try { 
        entrySourceVector0.elementAt(0);
        fail("Expecting exception: ArrayIndexOutOfBoundsException");
      
      } catch(ArrayIndexOutOfBoundsException e) {
         //
         // 0 >= 0
         //
         verifyException("java.util.Vector", e);
      }
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      EntrySourceVector entrySourceVector0 = new EntrySourceVector();
      entrySourceVector0.add((EntrySource) null);
      entrySourceVector0.addElement((EntrySource) null);
      assertEquals(1, entrySourceVector0.size());
  }
}
