Test case 1
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: Dimension dimension0 = featurePlot0.getPreferredSize();
6: assertEquals(0, dimension0.width);
7: assertEquals(160, dimension0.height);
Test case 2
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("feature_plot_height");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Entry entry0 = Entry.newEntry(bases0);
4: Feature feature0 = entry0.createFeature();
5: HydrophilicityAlgorithm hydrophilicityAlgorithm0 = new HydrophilicityAlgorithm(feature0);
6: FeaturePlot featurePlot0 = new FeaturePlot(hydrophilicityAlgorithm0);
7: featurePlot0.featureChanged((FeatureChangeEvent) null);
8: assertTrue(featurePlot0.getFocusTraversalKeysEnabled());
Test case 3
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: Dimension dimension0 = featurePlot0.getMinimumSize();
6: assertEquals(160, dimension0.height);
7: assertEquals(0, dimension0.width);
Test case 4
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: featurePlot0.stopListening();
6: assertTrue(featurePlot0.getFocusTraversalKeysEnabled());
Test case 5
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: featurePlot0.showAveragesForRange();
6: assertFalse(featurePlot0.isFocusTraversalPolicySet());
Test case 6
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("feature_plot_height");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Entry entry0 = Entry.newEntry(bases0);
4: Feature feature0 = entry0.createFeature();
5: HydrophilicityAlgorithm hydrophilicityAlgorithm0 = new HydrophilicityAlgorithm(feature0);
6: FeaturePlot featurePlot0 = new FeaturePlot(hydrophilicityAlgorithm0);
7: MockJapaneseDate mockJapaneseDate0 = new MockJapaneseDate();
8: DisplayAdjustmentEvent displayAdjustmentEvent0 = new DisplayAdjustmentEvent(mockJapaneseDate0, 5, (-1), 0, (-5), 875, false, 875);
9: featurePlot0.displayAdjustmentValueChanged(displayAdjustmentEvent0);
10: featurePlot0.recalculateValues();
11: assertFalse(featurePlot0.isFocusCycleRoot());
Test case 7
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: int int0 = featurePlot0.getPointPosition(0);
6: assertEquals(1, int0);
Test case 8
1: Key key0 = Key.CDS;
2: QualifierVector qualifierVector0 = new QualifierVector();
3: BlastStreamFeature blastStreamFeature0 = new BlastStreamFeature(key0, (Location) null, qualifierVector0);
4: Feature feature0 = new Feature(blastStreamFeature0);
5: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
6: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
7: featurePlot0.calculateFeatures(false);
8: assertTrue(featurePlot0.getFocusTraversalKeysEnabled());
Test case 9
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("feature_plot_height");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Entry entry0 = Entry.newEntry(bases0);
4: Feature feature0 = entry0.createFeature();
5: HydrophilicityAlgorithm hydrophilicityAlgorithm0 = new HydrophilicityAlgorithm(feature0);
6: hydrophilicityAlgorithm0.setScalingFlag(true);
7: FeaturePlot featurePlot0 = new FeaturePlot(hydrophilicityAlgorithm0);
8: featurePlot0.recalculateValues();
9: assertFalse(featurePlot0.isFocusTraversalPolicyProvider());
Test case 10
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: HydrophobicityAlgorithm hydrophobicityAlgorithm1 = (HydrophobicityAlgorithm)featurePlot0.getFeatureAlgorithm();
6: assertFalse(hydrophobicityAlgorithm1.isUserMaxMin());
Test case 11
1: FeaturePlot featurePlot0 = new FeaturePlot((FeatureAlgorithm) null);
Test case 12
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("feature_plot_height");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Entry entry0 = Entry.newEntry(bases0);
4: Feature feature0 = entry0.createFeature();
5: HydrophilicityAlgorithm hydrophilicityAlgorithm0 = new HydrophilicityAlgorithm(feature0);
6: hydrophilicityAlgorithm0.setScalingFlag(true);
7: FeaturePlot featurePlot0 = new FeaturePlot(hydrophilicityAlgorithm0);
8: HydrophilicityAlgorithm hydrophilicityAlgorithm1 = (HydrophilicityAlgorithm)featurePlot0.getFeatureAlgorithm();
9: assertEquals(1, hydrophilicityAlgorithm1.getValueCount());
Test case 13
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: featurePlot0.setBounds(100, 763, 100, 1285);
6: Dimension dimension0 = featurePlot0.getMinimumSize();
7: assertEquals(100, dimension0.width);
8: assertEquals(160, dimension0.height);
Test case 14
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: int int0 = featurePlot0.getPointPosition((-2355));
6: assertEquals((-2354), int0);
Test case 15
1: EmblStreamFeature emblStreamFeature0 = new EmblStreamFeature();
2: Feature feature0 = new Feature(emblStreamFeature0);
3: HydrophobicityAlgorithm hydrophobicityAlgorithm0 = new HydrophobicityAlgorithm(feature0);
4: FeaturePlot featurePlot0 = new FeaturePlot(hydrophobicityAlgorithm0);
5: int int0 = featurePlot0.getPointPosition((-1));
6: assertEquals(0, int0);
Test case 16
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("feature_plot_height");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Entry entry0 = Entry.newEntry(bases0);
4: Feature feature0 = entry0.createFeature();
5: HydrophilicityAlgorithm hydrophilicityAlgorithm0 = new HydrophilicityAlgorithm(feature0);
6: FeaturePlot featurePlot0 = new FeaturePlot(hydrophilicityAlgorithm0);
7: MockJapaneseDate mockJapaneseDate0 = new MockJapaneseDate();
8: DisplayAdjustmentEvent displayAdjustmentEvent0 = new DisplayAdjustmentEvent(mockJapaneseDate0, 5, 0, 0, (-5), 891, false, 891);
9: featurePlot0.displayAdjustmentValueChanged(displayAdjustmentEvent0);
10: LineAttributes[] lineAttributesArray0 = new LineAttributes[6];
11: featurePlot0.drawMultiValueGraph((Graphics) null, lineAttributesArray0);
Source Code
1: No source found for uk.ac.sanger.artemis.components.FeaturePlot
EvoSuite Parameters
- TARGET_CLASS: uk.ac.sanger.artemis.components.FeaturePlot
- Size: 16
- Length: 98
- criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
- Coverage: 0.6149717085207915
- BranchCoverage: 0.3235294117647059
- MethodCoverage: 1.0
- OutputCoverage: 0.41935483870967744
Back to Overview