Test case 1
1: SimpleEntryInformation simpleEntryInformation0 = new SimpleEntryInformation();
2: KeyChoice keyChoice0 = new KeyChoice(simpleEntryInformation0);
3: keyChoice0.setEnabled(true);
Test case 2
1: SimpleEntryInformation simpleEntryInformation0 = (SimpleEntryInformation)SimpleEntryInformation.getDefaultEntryInformation();
2: KeyChoice keyChoice0 = new KeyChoice(simpleEntryInformation0);
3: keyChoice0.removeItemListener((ItemListener) null);
4: assertTrue(keyChoice0.getFocusTraversalKeysEnabled());
Test case 3
1: BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
2: KeyChoice keyChoice0 = new KeyChoice(blastEntryInformation0);
3: keyChoice0.addItemListener((ItemListener) null);
4: assertFalse(keyChoice0.isFocusTraversalPolicySet());
Test case 4
1: BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
2: KeyChoice keyChoice0 = new KeyChoice(blastEntryInformation0);
3: Key key0 = keyChoice0.getSelectedItem();
4: assertEquals("CDS", key0.toString());
Test case 5
1: BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
2: KeyChoice keyChoice0 = new KeyChoice(blastEntryInformation0);
3: Key key0 = new Key("");
4: keyChoice0.setKey(key0);
5: keyChoice0.setKey(key0);
6: assertEquals(0, key0.length());
Test case 6
1: BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
2: Key key0 = new Key("NFa");
3: KeyChoice keyChoice0 = new KeyChoice(blastEntryInformation0, key0);
4: assertFalse(keyChoice0.getIgnoreRepaint());
Test case 7
1: KeyChoice keyChoice0 = new KeyChoice((EntryInformation) null);
Test case 8
1: BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
2: Key key0 = blastEntryInformation0.getDefaultKey();
3: KeyChoice keyChoice0 = new KeyChoice((EntryInformation) null, key0);
Test case 9
1: SimpleEntryInformation simpleEntryInformation0 = (SimpleEntryInformation)SimpleEntryInformation.getDefaultEntryInformation();
2: KeyChoice keyChoice0 = new KeyChoice(simpleEntryInformation0);
3: keyChoice0.setKey((Key) null);
Test case 10
1: BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
2: KeyChoice keyChoice0 = new KeyChoice(blastEntryInformation0);
3: Key key0 = new Key("");
4: keyChoice0.setKey(key0);
5: Key key1 = keyChoice0.getSelectedItem();
6: assertEquals(0, key1.length());
Test case 11
1: BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
2: Key key0 = blastEntryInformation0.getDefaultKey();
3: blastEntryInformation0.addKey(key0);
4: Key key1 = Key.CDS;
5: blastEntryInformation0.addKey(key1);
6: KeyChoice keyChoice0 = new KeyChoice(blastEntryInformation0, key1);
7: assertTrue(keyChoice0.getFocusTraversalKeysEnabled());
Source Code
1: No source found for uk.ac.sanger.artemis.components.KeyChoice
EvoSuite Parameters
- TARGET_CLASS: uk.ac.sanger.artemis.components.KeyChoice
- Size: 11
- Length: 38
- criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
- Coverage: 0.9328703703703703
- BranchCoverage: 1.0
- MethodCoverage: 1.0
- OutputCoverage: 0.5
Back to Overview