Summary

Test suite

Test case 1

  1: SynthScrollBarUI synthScrollBarUI0 = new SynthScrollBarUI();
  2: ScrollPanel scrollPanel0 = new ScrollPanel(synthScrollBarUI0);
  3: Rectangle rectangle0 = new Rectangle();
  4: int int0 = scrollPanel0.getScrollableUnitIncrement(rectangle0, 4844, 4844);
  5: assertEquals(10, int0);

Test case 2

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

Test case 3

  1: CardLayout cardLayout0 = new CardLayout(2151, (-2943));
  2: ScrollPanel scrollPanel0 = new ScrollPanel(cardLayout0);
  3: Dimension dimension0 = scrollPanel0.getPreferredScrollableViewportSize();
  4: assertEquals((-5886.0), dimension0.getHeight(), 0.01);

Test case 4

  1: SynthScrollBarUI synthScrollBarUI0 = new SynthScrollBarUI();
  2: ScrollPanel scrollPanel0 = new ScrollPanel(synthScrollBarUI0);
  3: Rectangle rectangle0 = new Rectangle();
  4: int int0 = scrollPanel0.getScrollableBlockIncrement(rectangle0, 4844, 0);
  5: assertEquals(60, int0);

Test case 5

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

Test case 6

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

Test case 7

  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 8

  1: GridLayout gridLayout0 = new GridLayout(15, 166, 788, 166);
  2: ScrollPanel scrollPanel0 = new ScrollPanel(gridLayout0);
  3: Dimension dimension0 = scrollPanel0.getPreferredScrollableViewportSize();
  4: assertEquals(2324, dimension0.height);

Test case 9

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

Source Code

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

EvoSuite Parameters

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


Back to Overview