Summary

Test suite

Test case 1

  1: ActionController actionController0 = new ActionController();
  2: Range range0 = new Range(597, 597);
  3: SequenceChangeEvent sequenceChangeEvent0 = new SequenceChangeEvent(597, 2, range0);
  4: actionController0.sequenceChanged(sequenceChangeEvent0);
  5: assertEquals(0, sequenceChangeEvent0.getLength());

Test case 2

  1: ActionController actionController0 = new ActionController();
  2: actionController0.startAction();
  3: actionController0.endAction();

Test case 3

  1: SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
  2: ActionController actionController0 = simpleEntryGroup0.getActionController();
  3: actionController0.startAction();
  4: actionController0.startAction();

Test case 4

  1: ActionController actionController0 = new ActionController();
  2: actionController0.endAction();
  3: assertFalse(actionController0.canUndo());

Test case 5

  1: ActionController actionController0 = new ActionController();
  2: boolean boolean0 = actionController0.canUndo();
  3: assertFalse(boolean0);

Test case 6

  1: SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
  2: FeatureVector featureVector0 = new FeatureVector();
  3: FilteredEntryGroup filteredEntryGroup0 = new FilteredEntryGroup(simpleEntryGroup0, featureVector0, "W888(p$g:NHs2");
  4: ActionController actionController0 = filteredEntryGroup0.getActionController();
  5: boolean boolean0 = actionController0.undo();
  6: assertFalse(boolean0);

Test case 7

  1: ActionController actionController0 = new ActionController();
  2: boolean boolean0 = actionController0.redo();
  3: assertFalse(boolean0);

Test case 8

  1: ActionController actionController0 = new ActionController();
  2: JRadioButtonMenuItem jRadioButtonMenuItem0 = new JRadioButtonMenuItem();
  3: actionController0.addUndoMenu(jRadioButtonMenuItem0);
  4: JCheckBoxMenuItem jCheckBoxMenuItem0 = new JCheckBoxMenuItem("Dispatcher-");
  5: actionController0.addUndoMenu(jCheckBoxMenuItem0);
  6: assertFalse(actionController0.canUndo());

Test case 9

  1: ActionController actionController0 = new ActionController();
  2: JPopupMenu jPopupMenu0 = new JPopupMenu("H2V5<-4xk^");
  3: StyledEditorKit.BoldAction styledEditorKit_BoldAction0 = new StyledEditorKit.BoldAction();
  4: JMenuItem jMenuItem0 = jPopupMenu0.add((Action) styledEditorKit_BoldAction0);
  5: actionController0.addRedoMenu(jMenuItem0);
  6: actionController0.addRedoMenu(jMenuItem0);
  7: assertFalse(actionController0.canUndo());

Test case 10

  1: FastaStreamSequence fastaStreamSequence0 = new FastaStreamSequence("G0 OI+O64Pw0G}=/", "G0 OI+O64Pw0G}=/");
  2: Bases bases0 = new Bases(fastaStreamSequence0);
  3: SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
  4: ActionController actionController0 = simpleEntryGroup0.getActionController();
  5: FeatureVector featureVector0 = new FeatureVector();
  6: FilteredEntryGroup filteredEntryGroup0 = new FilteredEntryGroup(simpleEntryGroup0, featureVector0, "G0 OI+O64Pw0G}=/");
  7: Entry entry0 = filteredEntryGroup0.createEntry("G0 OI+O64Pw0G}=/");
  8: EntryGroupChangeEvent entryGroupChangeEvent0 = new EntryGroupChangeEvent(simpleEntryGroup0, entry0, 1);
  9: actionController0.entryGroupChanged(entryGroupChangeEvent0);
 10: assertEquals(5, EntryGroupChangeEvent.NEW_DEFAULT_ENTRY);

Test case 11

  1: ActionController actionController0 = new ActionController();
  2: actionController0.startAction();
  3: actionController0.entryChanged((EntryChangeEvent) null);

Test case 12

  1: ActionController actionController0 = new ActionController();
  2: actionController0.featureChanged((FeatureChangeEvent) null);
  3: assertFalse(actionController0.canUndo());

Test case 13

  1: ActionController actionController0 = new ActionController();
  2: actionController0.startAction();
  3: actionController0.featureChanged((FeatureChangeEvent) null);

Test case 14

  1: ActionController actionController0 = new ActionController();
  2: SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
  3: Entry entry0 = simpleEntryGroup0.createEntry();
  4: EntryGroupChangeEvent entryGroupChangeEvent0 = new EntryGroupChangeEvent(simpleEntryGroup0, entry0, 2);
  5: actionController0.entryGroupChanged(entryGroupChangeEvent0);
  6: assertEquals(3, EntryGroupChangeEvent.ENTRY_ACTIVE);

Test case 15

  1: ActionController actionController0 = new ActionController();
  2: SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
  3: Entry entry0 = simpleEntryGroup0.createEntry();
  4: EntryChangeEvent entryChangeEvent0 = new EntryChangeEvent(actionController0, entry0, 0);
  5: actionController0.entryChanged(entryChangeEvent0);
  6: assertEquals(1, EntryChangeEvent.FEATURE_DELETED);

Test case 16

  1: SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
  2: ActionController actionController0 = simpleEntryGroup0.getActionController();
  3: actionController0.addRedoMenu((JMenuItem) null);

Test case 17

  1: SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
  2: ActionController actionController0 = simpleEntryGroup0.getActionController();
  3: actionController0.addUndoMenu((JMenuItem) null);

Test case 18

  1: ActionController actionController0 = new ActionController();
  2: actionController0.entryGroupChanged((EntryGroupChangeEvent) null);

Source Code

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

EvoSuite Parameters

  • TARGET_CLASS: uk.ac.sanger.artemis.ActionController
  • Size: 18
  • Length: 68
  • criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
  • Coverage: 0.6597885381635756
  • BranchCoverage: 0.5070422535211268
  • MethodCoverage: 1.0
  • OutputCoverage: 0.5


Back to Overview