Examples of JComboBoxFixture


Examples of org.fest.swing.fixture.JComboBoxFixture

        dialogFixture.robot);
  }

  @Test
  public void testShowReportProduksjon() {
    JComboBoxFixture comboBox = dialogFixture
        .comboBox("ComboBoxReportType");
    comboBox.selectItem(2);
    String reportName = comboBox.valueAt(2);
    dialogFixture.comboBox("ComboBoxProductArea").selectItem(
        "Garasje villa");
    dialogFixture.comboBox("ComboBoxWeek").selectItem(3);
    dialogFixture.button("ButtonShowReport").click();
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

        textFixture.enterText("123");
        titleCheckBox.focus();
        Mockito.verify(mockCanvasManifestation,Mockito.times(persistentCount)).fireFocusPersist();

        // check that selecting the border color call persistence
        JComboBoxFixture colorFixture = window.comboBox(new ComboBoxMatcher("Color:"));
        colorFixture.selectItem(2);
        Mockito.verify(mockCanvasManifestation,Mockito.times(++persistentCount)).fireFocusPersist();

        window.toggleButton(new JToggleButtonMatcher("All borders")).click();
        Mockito.verify(mockCanvasManifestation,Mockito.times(++persistentCount)).fireFocusPersist();
       
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

        FrameFixture frame = new FrameFixture(IGV.getMainFrame());
        JPanelFixture contentFixture = frame.panel("contentPane");

        JPanelFixture commandBar = frame.panel("igvCommandBar");
        JComboBoxFixture chromoBox = frame.comboBox("chromosomeComboBox");

        String[] chromos = commandBar.comboBox("chromosomeComboBox").contents();
        Assert.assertEquals(26, chromos.length);
    }
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

        FestUtils.verifyDialogIsNotShowing(OAuth2GetAccessTokenForm.ACCESS_TOKEN_FORM_DIALOG_NAME, robot);
    }

    @When("^the user selects (.+) in the authorization drop down$")
    public void selectItemInProfileSelectionComboBox(String itemName) {
        JComboBoxFixture comboBox = getProfileSelectionComboBox();
        comboBox.selectItem(itemName);
    }
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

        return findDialog("Add Authorization", robot);
    }


    private JComboBoxFixture getProfileSelectionComboBox() {
        JComboBoxFixture comboBox = rootWindow.comboBox(ProfileSelectionForm.PROFILE_COMBO_BOX);
        comboBox.focus();
        return comboBox;
    }
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

   
    @Test
    public void showOpenFileDisplaysSupportedFormats() throws Exception {
        showOpenDialog(null, null);

        JComboBoxFixture comboBox = getFileFormatComboBox();
        final int N = comboBox.contents().length;
        for (int i = 0; i < N; i++) {
            JFileImageChooser.FormatFilter filter =
                    (JFileImageChooser.FormatFilter) comboBox.component().getItemAt(i);
           
            String suffix = filter.getDefaultSuffix();
            if (suffix.startsWith(".")) {
                suffix = suffix.substring(1);
            }
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

    @Test
    public void showSaveFileDisplaysSupportedFormats() throws Exception {
        showSaveDialog(null, null);

        JComboBoxFixture comboBox = getFileFormatComboBox();
        final int N = comboBox.contents().length;
        for (int i = 0; i < N; i++) {
            JFileImageChooser.FormatFilter filter =
                    (JFileImageChooser.FormatFilter) comboBox.component().getItemAt(i);
           
            String suffix = filter.getDefaultSuffix();
            if (suffix.startsWith(".")) {
                suffix = suffix.substring(1);
            }
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

                    numEditedParams++;
                }
            } else if (sysexWidget instanceof ComboBoxWidget) {
                ComboBoxWidget widget = (ComboBoxWidget) sysexWidget;

                final JComboBoxFixture fixture =
                        new JComboBoxFixture(testFrame.robot, widget.cb);
                if (fixture.target.isEnabled()) {
                    new SwingComboBoxValueSetter(fixture, widget.getValueMin())
                            .setValue(widget.getValueMax());
                    numEditedParams++;
                }
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

    public SwingComboBoxAdapter(ComboBoxWidget widget, Robot robot) {
        super(widget);
        this.widget = widget;
        fixture =
                new JComboBoxFixture(robot, widget.cb);
        setValue(fixture.target.getSelectedIndex());
        setType(Type.COMBOBOX);
    }
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture

        super(widget);
        this.widget = widget;
        try {
            JComboBox cb = getField("cb", JComboBox.class, widget);
            fixture =
                    new JComboBoxFixture(robot, cb);
            setValue(fixture.target.getSelectedIndex());
            setType(Type.ID_COMBOBOX);
        } catch (NoSuchFieldException e) {
            LOG.warn(e.getMessage(), e);
        } catch (IllegalAccessException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.