Summary

Test suite

Test case 1

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: String string0 = ">YLhz9_v";
  3: databaseEntrySource0.setLocation(true);
  4: String string1 = "";
  5: InputStreamProgressListener inputStreamProgressListener0 = mock(InputStreamProgressListener.class, new ViolatedAssumptionAnswer());
  6: Range range0 = null;
  7: databaseEntrySource0.getEntry(string0, string1, inputStreamProgressListener0, range0);
  8: databaseEntrySource0.getSourceName();
  9: boolean boolean0 = false;
 10: databaseEntrySource0.setSplitGFF(boolean0);

Test case 2

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: databaseEntrySource0.setSplitGFF(true);
  3: databaseEntrySource0.setReadOnly(false);
  4: databaseEntrySource0.setSplitGFF(false);
  5: databaseEntrySource0.getLocation();
  6: UI.initalise();
  7: databaseEntrySource0.setReadOnly(true);
  8: databaseEntrySource0.getSourceName();
  9: databaseEntrySource0.setLocation(false);
 10: databaseEntrySource0.getEntry(false);
 11: databaseEntrySource0.setSplitGFF(false);
 12: databaseEntrySource0.isFullEntrySource();
 13: databaseEntrySource0.setSplitGFF(false);
 14: databaseEntrySource0.isReadOnly();
 15: Selection selection0 = new Selection((Clipboard) null);
 16: selection0.getSelectionRange();
 17: databaseEntrySource0.getEntry((String) null, "F! E&&<5yi", (InputStreamProgressListener) null, (Range) null);

Test case 3

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: InputStreamProgressListener inputStreamProgressListener0 = mock(InputStreamProgressListener.class, new ViolatedAssumptionAnswer());
  3: databaseEntrySource0.getEntry("m;", "4ru__thMLTs&e|yV", inputStreamProgressListener0, (Range) null);

Test case 4

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: databaseEntrySource0.setSplitGFF(false);
  3: databaseEntrySource0.getPfield();
  4: UI.UIMode uI_UIMode0 = UI.UIMode.SWING;
  5: UI.mode = uI_UIMode0;
  6: databaseEntrySource0.getDatabaseDocument();
  7: Feature feature0 = null;
  8: uk.ac.sanger.artemis.Feature feature1 = new uk.ac.sanger.artemis.Feature(feature0);
  9: Marker marker0 = feature1.getLastBaseMarker();
 10: Marker marker1 = Marker.getRawLowest(marker0, marker0);
 11: Strand strand0 = marker1.getStrand();
 12: AGWindowAlgorithm aGWindowAlgorithm0 = new AGWindowAlgorithm(strand0);
 13: strand0.getRawPosition(marker0.LISTENER_PRIORITY);
 14: strand0.getACount();
 15: int int0 = 0;
 16: feature1.getPositionInSequence(int0);
 17: Marker.getRawLowest(marker0, marker0);
 18: Bases bases0 = aGWindowAlgorithm0.getBases();
 19: boolean boolean0 = true;
 20: databaseEntrySource0.getEntry(bases0, boolean0);
 21: boolean boolean1 = false;
 22: databaseEntrySource0.setReadOnly(boolean1);
 23: databaseEntrySource0.getDatabaseDocument();
 24: databaseEntrySource0.getLocation();
 25: String string0 = "'\\wg3]-9km_Af5";
 26: String string1 = "";
 27: InputStreamProgressListener inputStreamProgressListener0 = mock(InputStreamProgressListener.class, new ViolatedAssumptionAnswer());
 28: databaseEntrySource0.getEntry(string0, string1, inputStreamProgressListener0);

Test case 5

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: boolean boolean0 = false;
  3: databaseEntrySource0.setLocation(false);
  4: databaseEntrySource0.setSplitGFF(true);
  5: databaseEntrySource0.setSplitGFF(true);
  6: String string0 = databaseEntrySource0.getLocation();
  7: String string1 = databaseEntrySource0.getSourceName();
  8: UI.initalise();
  9: databaseEntrySource0.setReadOnly(false);
 10: JPasswordField jPasswordField0 = databaseEntrySource0.getPfield();
 11: String string2 = "The selected entry contains no sequence: ";
 12: InputStreamProgressListener inputStreamProgressListener0 = mock(InputStreamProgressListener.class, new ViolatedAssumptionAnswer());
 13: databaseEntrySource0.getEntry("Database", "The selected entry contains no sequence: ", inputStreamProgressListener0);
 14: databaseEntrySource0.setSplitGFF(boolean0);
 15: InputStreamProgressListener inputStreamProgressListener1 = mock(InputStreamProgressListener.class, new ViolatedAssumptionAnswer());
 16: databaseEntrySource0.getEntry(string1, string0, inputStreamProgressListener1);
 17: databaseEntrySource0.getSourceName();
 18: String string3 = "%";
 19: boolean boolean1 = true;
 20: DatabaseDocument databaseDocument0 = new DatabaseDocument(string1, jPasswordField0, string2, string3, boolean1);
 21: String string4 = "";
 22: databaseEntrySource0.makeFromGff(databaseDocument0, string4, string4);

Test case 6

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: byte[] byteArray0 = new byte[5];
  3: byteArray0[0] = (byte) (-21);
  4: byteArray0[1] = (byte)88;
  5: byteArray0[2] = (byte)36;
  6: byteArray0[4] = (byte)88;
  7: ImageIcon imageIcon0 = new ImageIcon(byteArray0, "<0)&");
  8: JCheckBoxMenuItem jCheckBoxMenuItem0 = new JCheckBoxMenuItem("<0)&");
  9: LocalAndRemoteFileManager.lazyLoad = jCheckBoxMenuItem0;
 10: databaseEntrySource0.getPfield();
 11: InputStreamProgressListener inputStreamProgressListener0 = mock(InputStreamProgressListener.class, new ViolatedAssumptionAnswer());
 12: databaseEntrySource0.getEntry((String) null, "pFCE%mpFK,G+:WT", inputStreamProgressListener0);

Test case 7

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: databaseEntrySource0.getSourceName();
  3: databaseEntrySource0.getSourceName();
  4: Bases bases0 = new Bases((Sequence) null);
  5: databaseEntrySource0.getEntry(bases0, true);
  6: JPasswordField jPasswordField0 = new JPasswordField();
  7: DatabaseDocument databaseDocument0 = new DatabaseDocument("E|b{_yl<47", jPasswordField0);
  8: databaseEntrySource0.makeFromGff(databaseDocument0, "", "QwiKf~84@[$OUS1Fw!");

Test case 8

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: boolean boolean0 = databaseEntrySource0.isReadOnly();
  3: assertFalse(boolean0);

Test case 9

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: UI.UIMode uI_UIMode0 = UI.UIMode.SCRIPT;
  3: UI.mode = uI_UIMode0;
  4: String string0 = databaseEntrySource0.getSourceName();
  5: assertEquals("Database", string0);
  6: 
  7: boolean boolean0 = databaseEntrySource0.setLocation(true);
  8: assertFalse(boolean0);
  9: assertFalse(databaseEntrySource0.isReadOnly());

Test case 10

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: UI.UIMode uI_UIMode0 = UI.UIMode.CONSOLE;
  3: UI.mode = uI_UIMode0;
  4: databaseEntrySource0.setSplitGFF(true);
  5: UI.initalise();
  6: databaseEntrySource0.setLocation(false);

Test case 11

  1: DatabaseEntrySource databaseEntrySource0 = new DatabaseEntrySource();
  2: databaseEntrySource0.setLocation(false);
  3: databaseEntrySource0.getDatabaseDocument();
  4: DatabaseDocument.CONTROLLED_CURATION_TAG_CVNAME = "genedb_products";
  5: DatabaseDocument.PRODUCTS_TAG_CVNAME = "/etc/qualifier_mapping";
  6: databaseEntrySource0.setReadOnly(true);
  7: databaseEntrySource0.getSourceName();
  8: databaseEntrySource0.getSourceName();
  9: assertTrue(databaseEntrySource0.isReadOnly());
 10: 
 11: databaseEntrySource0.setReadOnly(false);
 12: boolean boolean0 = databaseEntrySource0.isFullEntrySource();
 13: assertTrue(boolean0);

Source Code

  1: No source found for uk.ac.sanger.artemis.components.database.DatabaseEntrySource

EvoSuite Parameters

  • TARGET_CLASS: uk.ac.sanger.artemis.components.database.DatabaseEntrySource
  • Size: 11
  • Length: 123
  • criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
  • Coverage: 0.6804123192141109
  • BranchCoverage: 0.7037037037037037
  • MethodCoverage: 1.0
  • OutputCoverage: 0.425531914893617


Back to Overview