Summary

Test suite

Test case 1

  1: ScrollPanel scrollPanel0 = new ScrollPanel();
  2: boolean boolean0 = scrollPanel0.getScrollableTracksViewportWidth();
  3: assertFalse(boolean0);

Test case 2

  1: SynthScrollBarUI synthScrollBarUI0 = new SynthScrollBarUI();
  2: ScrollPanel scrollPanel0 = new ScrollPanel(synthScrollBarUI0);
  3: boolean boolean0 = scrollPanel0.getScrollableTracksViewportHeight();
  4: assertFalse(boolean0);

Test case 3

  1: SynthScrollBarUI synthScrollBarUI0 = new SynthScrollBarUI();
  2: ScrollPanel scrollPanel0 = new ScrollPanel(synthScrollBarUI0);
  3: scrollPanel0.getPreferredScrollableViewportSize();

Test case 4

  1: SynthScrollBarUI synthScrollBarUI0 = new SynthScrollBarUI();
  2: ScrollPanel scrollPanel0 = new ScrollPanel(synthScrollBarUI0);
  3: DefaultTableColumnModel defaultTableColumnModel0 = new DefaultTableColumnModel();
  4: JTableHeader jTableHeader0 = new JTableHeader(defaultTableColumnModel0);
  5: Rectangle rectangle0 = jTableHeader0.getHeaderRect((-81));
  6: int int0 = scrollPanel0.getScrollableBlockIncrement(rectangle0, 0, 99);
  7: assertEquals(60, int0);

Test case 5

  1: FlowLayout flowLayout0 = new FlowLayout((-18), (-18), (-18));
  2: ScrollPanel scrollPanel0 = new ScrollPanel(flowLayout0);
  3: Polygon polygon0 = new Polygon();
  4: Rectangle rectangle0 = polygon0.getBounds();
  5: int int0 = scrollPanel0.getScrollableUnitIncrement(rectangle0, 15, (-1241));
  6: assertEquals(10, int0);

Test case 6

  1: MetalComboBoxUI metalComboBoxUI0 = new MetalComboBoxUI();
  2: MetalComboBoxUI.MetalComboBoxLayoutManager metalComboBoxUI_MetalComboBoxLayoutManager0 = metalComboBoxUI0.new MetalComboBoxLayoutManager();
  3: ScrollPanel scrollPanel0 = new ScrollPanel(metalComboBoxUI_MetalComboBoxLayoutManager0);
  4: scrollPanel0.getPreferredScrollableViewportSize();

Test case 7

  1: FlowLayout flowLayout0 = new FlowLayout((-18), (-18), (-18));
  2: ScrollPanel scrollPanel0 = new ScrollPanel(flowLayout0);
  3: Dimension dimension0 = scrollPanel0.getPreferredScrollableViewportSize();
  4: assertEquals((-36.0), dimension0.getWidth(), 0.01);

Test case 8

  1: ScrollPanel scrollPanel0 = new ScrollPanel();
  2: Dimension dimension0 = scrollPanel0.getPreferredScrollableViewportSize();
  3: assertEquals(10, dimension0.width);

Test case 9

  1: BorderLayout borderLayout0 = new BorderLayout();
  2: ScrollPanel scrollPanel0 = new ScrollPanel(borderLayout0);
  3: Dimension dimension0 = scrollPanel0.getPreferredScrollableViewportSize();
  4: assertEquals(0, dimension0.height);

Source Code

  1: No source found for uk.ac.sanger.artemis.circular.ScrollPanel

EvoSuite Parameters

  • TARGET_CLASS: uk.ac.sanger.artemis.circular.ScrollPanel
  • Size: 9
  • Length: 31
  • criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
  • Coverage: 0.9485294117647058
  • BranchCoverage: 1.0
  • MethodCoverage: 1.0
  • OutputCoverage: 0.5882352941176471


Back to Overview