Summary

Test suite

Test case 1

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: entrySourceVector0.elementAt(0);

Test case 2

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: int int0 = entrySourceVector0.size();
  3: assertEquals(0, int0);

Test case 3

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: EntrySourceVector entrySourceVector1 = (EntrySourceVector)entrySourceVector0.clone();
  3: assertNotSame(entrySourceVector1, entrySourceVector0);

Test case 4

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: entrySourceVector0.removeAllElements();
  3: assertEquals(0, entrySourceVector0.size());

Test case 5

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: BioJavaEntrySource bioJavaEntrySource0 = new BioJavaEntrySource();
  3: boolean boolean0 = entrySourceVector0.removeElement(bioJavaEntrySource0);
  4: assertFalse(boolean0);

Test case 6

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: entrySourceVector0.addElement((EntrySource) null);
  3: boolean boolean0 = entrySourceVector0.contains((EntrySource) null);
  4: assertEquals(1, entrySourceVector0.size());
  5: assertTrue(boolean0);

Test case 7

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: BioJavaEntrySource bioJavaEntrySource0 = new BioJavaEntrySource();
  3: boolean boolean0 = entrySourceVector0.contains(bioJavaEntrySource0);
  4: assertFalse(boolean0);

Test case 8

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: BioJavaEntrySource bioJavaEntrySource0 = new BioJavaEntrySource();
  3: int int0 = entrySourceVector0.indexOf(bioJavaEntrySource0);
  4: assertEquals((-1), int0);

Test case 9

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: entrySourceVector0.add((EntrySource) null);
  3: entrySourceVector0.addElement((EntrySource) null);
  4: assertEquals(1, entrySourceVector0.size());

Test case 10

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: InputStreamProgressListener inputStreamProgressListener0 = mock(InputStreamProgressListener.class, new ViolatedAssumptionAnswer());
  3: FileDialogEntrySource fileDialogEntrySource0 = new FileDialogEntrySource((JFrame) null, inputStreamProgressListener0);
  4: entrySourceVector0.add(fileDialogEntrySource0);
  5: FileDialogEntrySource fileDialogEntrySource1 = (FileDialogEntrySource)entrySourceVector0.elementAt(0);
  6: assertEquals("Filesystem", fileDialogEntrySource1.getSourceName());

Test case 11

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: BioJavaEntrySource bioJavaEntrySource0 = new BioJavaEntrySource();
  3: entrySourceVector0.add(bioJavaEntrySource0);
  4: BioJavaEntrySource bioJavaEntrySource1 = (BioJavaEntrySource)entrySourceVector0.elementAt(0);
  5: assertSame(bioJavaEntrySource1, bioJavaEntrySource0);

Test case 12

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: entrySourceVector0.add((EntrySource) null);
  3: EntrySource entrySource0 = entrySourceVector0.elementAt(0);
  4: assertNull(entrySource0);

Test case 13

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: BioJavaEntrySource bioJavaEntrySource0 = new BioJavaEntrySource();
  3: BioJavaEntrySource bioJavaEntrySource1 = new BioJavaEntrySource();
  4: entrySourceVector0.add(bioJavaEntrySource0);
  5: entrySourceVector0.add(bioJavaEntrySource1);
  6: int int0 = entrySourceVector0.indexOf(bioJavaEntrySource1);
  7: assertEquals(1, int0);

Test case 14

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: entrySourceVector0.add((EntrySource) null);
  3: int int0 = entrySourceVector0.indexOf((EntrySource) null);
  4: assertEquals(0, int0);

Test case 15

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: BioJavaEntrySource bioJavaEntrySource0 = new BioJavaEntrySource();
  3: entrySourceVector0.add(bioJavaEntrySource0);
  4: boolean boolean0 = entrySourceVector0.removeElement(bioJavaEntrySource0);
  5: assertTrue(boolean0);

Test case 16

  1: EntrySourceVector entrySourceVector0 = new EntrySourceVector();
  2: entrySourceVector0.addElement((EntrySource) null);
  3: int int0 = entrySourceVector0.size();
  4: assertEquals(1, int0);

Source Code

  1: No source found for uk.ac.sanger.artemis.EntrySourceVector

EvoSuite Parameters

  • TARGET_CLASS: uk.ac.sanger.artemis.EntrySourceVector
  • Size: 16
  • Length: 51
  • criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
  • Coverage: 0.9701754385964912
  • BranchCoverage: 1.0
  • MethodCoverage: 1.0
  • OutputCoverage: 0.8666666666666667


Back to Overview