Summary

Test suite

Test case 1

  1: FileSystemHandling fileSystemHandling0 = new FileSystemHandling();
  2: Timestamp timestamp0 = new Timestamp((-3099));
  3: Key key0 = new Key("t9_/jB(%Zx>rE-&=9D");
  4: Range range0 = new Range(240, 240);
  5: Location location0 = new Location(range0);
  6: ChadoCanonicalGene chadoCanonicalGene0 = new ChadoCanonicalGene();
  7: DatabaseInferredFeature databaseInferredFeature0 = new DatabaseInferredFeature(key0, location0, (QualifierVector) null, chadoCanonicalGene0);
  8: ChadoTransaction chadoTransaction0 = new ChadoTransaction((-3099), fileSystemHandling0, timestamp0, databaseInferredFeature0, "CDS", "CDS");
  9: chadoTransaction0.getOldUniquename();

Test case 2

  1: GenbankStreamFeature genbankStreamFeature0 = new GenbankStreamFeature();
  2: GFFStreamFeature gFFStreamFeature0 = new GFFStreamFeature(genbankStreamFeature0, true);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(1, (Object) null, (Timestamp) null, gFFStreamFeature0, "gX@Va4$", "exon");
  4: chadoTransaction0.setUniquename("");
  5: ChadoTransaction chadoTransaction1 = chadoTransaction0.copy();
  6: assertEquals(1, chadoTransaction0.getType());
  7: assertEquals("gX@Va4$", chadoTransaction1.getFeatureKey());
  8: assertNotSame(chadoTransaction1, chadoTransaction0);

Test case 3

  1: MockHijrahDate mockHijrahDate0 = new MockHijrahDate();
  2: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  3: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  4: ChadoTransaction chadoTransaction0 = new ChadoTransaction(60, mockHijrahDate0, (Timestamp) null, databaseStreamFeature0, (String) null, (String) null);
  5: String string0 = chadoTransaction0.getTypeAsString();
  6: assertEquals(60, chadoTransaction0.getType());
  7: assertEquals("", string0);

Test case 4

  1: GenbankStreamFeature genbankStreamFeature0 = new GenbankStreamFeature();
  2: GFFStreamFeature gFFStreamFeature0 = new GFFStreamFeature(genbankStreamFeature0, true);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(1, (Object) null, (Timestamp) null, gFFStreamFeature0, "gX@Va4$", "exon");
  4: String string0 = chadoTransaction0.getTypeAsString();
  5: assertEquals("UPDATE", string0);
  6: assertEquals("gX@Va4$", chadoTransaction0.getFeatureKey());

Test case 5

  1: FileSystemHandling fileSystemHandling0 = new FileSystemHandling();
  2: Timestamp timestamp0 = new Timestamp((-3099));
  3: Key key0 = new Key("t9_/jB(%Zx>rE-&=9D");
  4: Range range0 = new Range(240, 240);
  5: Location location0 = new Location(range0);
  6: ChadoCanonicalGene chadoCanonicalGene0 = new ChadoCanonicalGene();
  7: DatabaseInferredFeature databaseInferredFeature0 = new DatabaseInferredFeature(key0, location0, (QualifierVector) null, chadoCanonicalGene0);
  8: ChadoTransaction chadoTransaction0 = new ChadoTransaction((-3099), fileSystemHandling0, timestamp0, databaseInferredFeature0, "CDS", "CDS");
  9: ChadoTransaction chadoTransaction1 = chadoTransaction0.copy();
 10: assertEquals((-3099), chadoTransaction1.getType());
 11: 
 12: chadoTransaction1.type = 2;
 13: String string0 = chadoTransaction1.getTypeAsString();
 14: assertEquals("INSERT", string0);

Test case 6

  1: LocalDateTime localDateTime0 = MockLocalDateTime.of(3, 3, 3, 3, 3, 3);
  2: Timestamp timestamp0 = Timestamp.valueOf(localDateTime0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(3, (Object) null, timestamp0, (GFFStreamFeature) null, (String) null, (String) null);
  4: String string0 = chadoTransaction0.getLogComment();
  5: assertEquals("[DELETE] null", string0);

Test case 7

  1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  2: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, (Object) null, (Timestamp) null, databaseStreamFeature0, ">sa$32C", " could not be found");
  4: String string0 = chadoTransaction0.getUniquename();
  5: assertEquals(0, chadoTransaction0.getType());
  6: assertEquals(">sa$32C", chadoTransaction0.getFeatureKey());
  7: assertNotNull(string0);

Test case 8

  1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  2: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, (Object) null, (Timestamp) null, databaseStreamFeature0, ">sa$32C", " could not be found");
  4: chadoTransaction0.setUniquename("CDS");
  5: String string0 = chadoTransaction0.getUniquename();
  6: assertEquals(0, chadoTransaction0.getType());
  7: assertEquals(">sa$32C", chadoTransaction0.getFeatureKey());
  8: assertNotNull(string0);

Test case 9

  1: Integer integer0 = JLayeredPane.POPUP_LAYER;
  2: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, integer0, (Timestamp) null, (GFFStreamFeature) null, "QE~T'6$RVQs!n%7/x", "WvhP<+Z");
  3: chadoTransaction0.getUniquename();
  4: assertEquals("QE~T'6$RVQs!n%7/x", chadoTransaction0.getFeatureKey());
  5: assertEquals(0, chadoTransaction0.getType());

Test case 10

  1: GenbankStreamFeature genbankStreamFeature0 = new GenbankStreamFeature();
  2: GFFStreamFeature gFFStreamFeature0 = new GFFStreamFeature(genbankStreamFeature0, true);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(1, (Object) null, (Timestamp) null, gFFStreamFeature0, "gX@Va4$", "exon");
  4: String string0 = chadoTransaction0.getLogComment();
  5: assertEquals("[UPDATE] exon KEY=gX@Va4$", string0);

Test case 11

  1: MockHijrahDate mockHijrahDate0 = new MockHijrahDate();
  2: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  3: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  4: ChadoTransaction chadoTransaction0 = new ChadoTransaction(60, mockHijrahDate0, (Timestamp) null, databaseStreamFeature0, (String) null, (String) null);
  5: chadoTransaction0.getFeatureObject();
  6: assertEquals(60, chadoTransaction0.getType());

Test case 12

  1: MockHijrahDate mockHijrahDate0 = new MockHijrahDate();
  2: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  3: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  4: ChadoTransaction chadoTransaction0 = new ChadoTransaction(60, mockHijrahDate0, (Timestamp) null, databaseStreamFeature0, (String) null, (String) null);
  5: chadoTransaction0.getFeatureKey();
  6: assertEquals(60, chadoTransaction0.getType());

Test case 13

  1: ChadoTransaction chadoTransaction0 = new ChadoTransaction((-1437733547), (Object) null, (Timestamp) null, (GFFStreamFeature) null, "[", "[");
  2: chadoTransaction0.getGff_feature();
  3: assertEquals("[", chadoTransaction0.getFeatureKey());
  4: assertEquals((-1437733547), chadoTransaction0.getType());

Test case 14

  1: MockHijrahDate mockHijrahDate0 = new MockHijrahDate();
  2: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  3: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  4: ChadoTransaction chadoTransaction0 = new ChadoTransaction(60, mockHijrahDate0, (Timestamp) null, databaseStreamFeature0, (String) null, (String) null);
  5: chadoTransaction0.getLastModified();
  6: assertEquals(60, chadoTransaction0.getType());

Test case 15

  1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  2: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, (Object) null, (Timestamp) null, databaseStreamFeature0, ">sa$32C", " could not be found");
  4: int int0 = chadoTransaction0.getType();
  5: assertEquals(0, int0);
  6: assertEquals(">sa$32C", chadoTransaction0.getFeatureKey());

Test case 16

  1: LocalDateTime localDateTime0 = MockLocalDateTime.now();
  2: Timestamp timestamp0 = Timestamp.valueOf(localDateTime0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(3, (Object) null, timestamp0, (GFFStreamFeature) null, (String) null, (String) null);
  4: String string0 = chadoTransaction0.getTypeAsString();
  5: assertEquals("DELETE", string0);

Test case 17

  1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  2: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, (Object) null, (Timestamp) null, databaseStreamFeature0, ">sa$32C", " could not be found");
  4: ChadoTransaction chadoTransaction1 = chadoTransaction0.copy();
  5: assertEquals(">sa$32C", chadoTransaction1.getFeatureKey());
  6: assertNotSame(chadoTransaction1, chadoTransaction0);
  7: assertEquals(0, chadoTransaction1.getType());

Test case 18

  1: MockMinguoDate mockMinguoDate0 = new MockMinguoDate();
  2: Timestamp timestamp0 = new Timestamp(0L);
  3: Key key0 = new Key("");
  4: Range range0 = new Range(0, 418);
  5: RangeVector rangeVector0 = new RangeVector(range0);
  6: Location location0 = new Location(rangeVector0, false);
  7: QualifierVector qualifierVector0 = new QualifierVector();
  8: GFFStreamFeature gFFStreamFeature0 = new GFFStreamFeature(key0, location0, qualifierVector0);
  9: ChadoTransaction chadoTransaction0 = new ChadoTransaction(1331, mockMinguoDate0, timestamp0, gFFStreamFeature0, "", "");
 10: String string0 = chadoTransaction0.getFeatureKey();
 11: assertNotNull(string0);
 12: assertEquals(1331, chadoTransaction0.getType());
 13: assertEquals("", string0);

Test case 19

  1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  2: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, (Object) null, (Timestamp) null, databaseStreamFeature0, ">sa$32C", " could not be found");
  4: String string0 = chadoTransaction0.getFeatureKey();
  5: assertNotNull(string0);
  6: assertEquals(">sa$32C", string0);
  7: assertEquals(0, chadoTransaction0.getType());

Test case 20

  1: ChadoTransaction chadoTransaction0 = new ChadoTransaction((-1437733547), (Object) null, (Timestamp) null, (GFFStreamFeature) null, "[", "[");
  2: chadoTransaction0.getFeatureObject();
  3: assertEquals((-1437733547), chadoTransaction0.getType());
  4: assertEquals("[", chadoTransaction0.getFeatureKey());

Test case 21

  1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  2: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, (Object) null, (Timestamp) null, databaseStreamFeature0, ">sa$32C", " could not be found");
  4: chadoTransaction0.getGff_feature();
  5: assertEquals(">sa$32C", chadoTransaction0.getFeatureKey());
  6: assertEquals(0, chadoTransaction0.getType());

Test case 22

  1: LocalDateTime localDateTime0 = MockLocalDateTime.now();
  2: Timestamp timestamp0 = Timestamp.valueOf(localDateTime0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(3, (Object) null, timestamp0, (GFFStreamFeature) null, (String) null, (String) null);
  4: chadoTransaction0.getLastModified();
  5: assertEquals("DELETE", chadoTransaction0.getTypeAsString());

Test case 23

  1: LocalDateTime localDateTime0 = MockLocalDateTime.of(3, 3, 3, 3, 3, 3);
  2: Timestamp timestamp0 = Timestamp.valueOf(localDateTime0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(3, (Object) null, timestamp0, (GFFStreamFeature) null, (String) null, (String) null);
  4: chadoTransaction0.getLastModified();
  5: assertEquals("DELETE", chadoTransaction0.getTypeAsString());

Test case 24

  1: Integer integer0 = JLayeredPane.POPUP_LAYER;
  2: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, integer0, (Timestamp) null, (GFFStreamFeature) null, "QE~T'6$RVQs!n%7/x", "WvhP<+Z");
  3: chadoTransaction0.setOldUniquename("WvhP<+Z");
  4: String string0 = chadoTransaction0.getOldUniquename();
  5: assertEquals("QE~T'6$RVQs!n%7/x", chadoTransaction0.getFeatureKey());
  6: assertEquals(0, chadoTransaction0.getType());
  7: assertNotNull(string0);

Test case 25

  1: FileSystemHandling fileSystemHandling0 = new FileSystemHandling();
  2: Timestamp timestamp0 = new Timestamp((-3099));
  3: Key key0 = new Key("t9_/jB(%Zx>rE-&=9D");
  4: Range range0 = new Range(240, 240);
  5: Location location0 = new Location(range0);
  6: ChadoCanonicalGene chadoCanonicalGene0 = new ChadoCanonicalGene();
  7: DatabaseInferredFeature databaseInferredFeature0 = new DatabaseInferredFeature(key0, location0, (QualifierVector) null, chadoCanonicalGene0);
  8: ChadoTransaction chadoTransaction0 = new ChadoTransaction((-3099), fileSystemHandling0, timestamp0, databaseInferredFeature0, "CDS", "CDS");
  9: int int0 = chadoTransaction0.getType();
 10: assertEquals((-3099), int0);
 11: assertEquals("exon", chadoTransaction0.getFeatureKey());

Test case 26

  1: FileSystemHandling fileSystemHandling0 = new FileSystemHandling();
  2: Timestamp timestamp0 = new Timestamp((-3099));
  3: Key key0 = new Key("t9_/jB(%Zx>rE-&=9D");
  4: Range range0 = new Range(240, 240);
  5: Location location0 = new Location(range0);
  6: ChadoCanonicalGene chadoCanonicalGene0 = new ChadoCanonicalGene();
  7: DatabaseInferredFeature databaseInferredFeature0 = new DatabaseInferredFeature(key0, location0, (QualifierVector) null, chadoCanonicalGene0);
  8: ChadoTransaction chadoTransaction0 = new ChadoTransaction((-3099), fileSystemHandling0, timestamp0, databaseInferredFeature0, "CDS", "CDS");
  9: ChadoTransaction chadoTransaction1 = chadoTransaction0.copy();
 10: assertEquals("", chadoTransaction1.getTypeAsString());
 11: 
 12: chadoTransaction1.type = 2;
 13: int int0 = chadoTransaction1.getType();
 14: assertEquals(2, int0);

Test case 27

  1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
  2: DatabaseStreamFeature databaseStreamFeature0 = new DatabaseStreamFeature(emblStreamFeature0);
  3: ChadoTransaction chadoTransaction0 = new ChadoTransaction(0, (Object) null, (Timestamp) null, databaseStreamFeature0, ">sa$32C", " could not be found");
  4: String string0 = chadoTransaction0.getTypeAsString();
  5: assertEquals(0, chadoTransaction0.getType());
  6: assertEquals(">sa$32C", chadoTransaction0.getFeatureKey());
  7: assertEquals("", string0);

Source Code

  1: No source found for uk.ac.sanger.artemis.chado.ChadoTransaction

EvoSuite Parameters

  • TARGET_CLASS: uk.ac.sanger.artemis.chado.ChadoTransaction
  • Size: 27
  • Length: 139
  • criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
  • Coverage: 0.9642857142857143
  • BranchCoverage: 1.0
  • MethodCoverage: 1.0
  • OutputCoverage: 0.7142857142857143


Back to Overview