当前位置: 首页>>代码示例>>Java>>正文


Java JRadioButtonOperator类代码示例

本文整理汇总了Java中org.netbeans.jemmy.operators.JRadioButtonOperator的典型用法代码示例。如果您正苦于以下问题:Java JRadioButtonOperator类的具体用法?Java JRadioButtonOperator怎么用?Java JRadioButtonOperator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


JRadioButtonOperator类属于org.netbeans.jemmy.operators包,在下文中一共展示了JRadioButtonOperator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testOptions

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/** Test Options  
 * - open Options window from main menu Tools|Options
 * - select Editor category
 * - select Fonts & Colors category
 * - select Keymap category
 * - select General category
 * - pick Manual Proxy Setting
 * - set Proxy Host to emea-proxy.uk.oracle.com
 * - set Proxy Port to 80
 * - click OK to confirm and close Options window
 */
public void testOptions() {
    OptionsOperator optionsOper = OptionsOperator.invoke();
    optionsOper.selectEditor();
    optionsOper.selectFontAndColors();
    optionsOper.selectKeymap();
    optionsOper.selectGeneral();
    // "Manual Proxy Setting"
    String hTTPProxyLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Use_HTTP_Proxy");
    new JRadioButtonOperator(optionsOper, hTTPProxyLabel).push();
    // "HTTP Proxy:"
    String proxyHostLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Proxy_Host");
    JLabelOperator jloHost = new JLabelOperator(optionsOper, proxyHostLabel);
    new JTextFieldOperator((JTextField) jloHost.getLabelFor()).setText("www-proxy.uk.oracle.com"); // NOI18N
    // "Port:"
    String proxyPortLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Proxy_Port");
    JLabelOperator jloPort = new JLabelOperator(optionsOper, proxyPortLabel);
    new JTextFieldOperator((JTextField) jloPort.getLabelFor()).setText("80"); // NOI18N
    optionsOper.ok();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:34,代码来源:PerfIDEValidation.java

示例2: testSetProxy

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/** Sets proxy for network connection. */
public void testSetProxy() {
    OptionsOperator optionsOper = OptionsOperator.invoke();
    optionsOper.selectGeneral();
    // "Manual Proxy Setting"
    String hTTPProxyLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Use_HTTP_Proxy");
    new JRadioButtonOperator(optionsOper, hTTPProxyLabel).push();
    // "HTTP Proxy:"
    String proxyHostLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Proxy_Host");
    JLabelOperator jloHost = new JLabelOperator(optionsOper, proxyHostLabel);
    new JTextFieldOperator((JTextField) jloHost.getLabelFor()).typeText("emea-proxy.uk.oracle.com"); // NOI18N
    // "Port:"
    String proxyPortLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Proxy_Port");
    JLabelOperator jloPort = new JLabelOperator(optionsOper, proxyPortLabel);
    new JTextFieldOperator((JTextField) jloPort.getLabelFor()).setText("80"); // NOI18N
    optionsOper.ok();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:PluginsOperatorTest.java

示例3: testOptions

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/** Test Options  
 * - open Options window from main menu Tools|Options
 * - select Editor category
 * - select Fonts & Colors category
 * - select Keymap category
 * - select General category
 * - pick Manual Proxy Setting
 * - set Proxy Host to emea-proxy.uk.oracle.com
 * - set Proxy Port to 80
 * - click OK to confirm and close Options window
 */
public void testOptions() {
    OptionsOperator optionsOper = OptionsOperator.invoke();
    optionsOper.selectEditor();
    optionsOper.selectFontAndColors();
    optionsOper.selectKeymap();
    optionsOper.selectGeneral();
    // "Manual Proxy Setting"
    String hTTPProxyLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Use_HTTP_Proxy");
    new JRadioButtonOperator(optionsOper, hTTPProxyLabel).push();
    // "HTTP Proxy:"
    String proxyHostLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Proxy_Host");
    JLabelOperator jloHost = new JLabelOperator(optionsOper, proxyHostLabel);
    new JTextFieldOperator((JTextField) jloHost.getLabelFor()).setText("emea-proxy.uk.oracle.com"); // NOI18N
    // "Port:"
    String proxyPortLabel = Bundle.getStringTrimmed(
            "org.netbeans.core.ui.options.general.Bundle", "CTL_Proxy_Port");
    JLabelOperator jloPort = new JLabelOperator(optionsOper, proxyPortLabel);
    new JTextFieldOperator((JTextField) jloPort.getLabelFor()).setText("80"); // NOI18N
    optionsOper.ok();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:34,代码来源:IDEValidation.java

示例4: checkDividerMoves

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
public void checkDividerMoves(JFrameOperator frame, JSplitPaneOperator splitPane, boolean isVertical) throws Exception {
    if (isVertical) {
        new JRadioButtonOperator(frame, VERTICAL_SPLIT).doClick();
    } else {
        new JRadioButtonOperator(frame, HORIZONTAL_SPLIT).doClick();
    }

    splitPane.moveDivider(0.0);
    assertEquals("Move Minimum, dividerLocation is at minimumDividerLocation",
            splitPane.getMinimumDividerLocation(), splitPane.getDividerLocation());

    // use getMaximumDividerLocation() to move divider to here because using proportion 1.0 does not work
    splitPane.moveDivider(1.0);

    assertEquals("Move Maximum, dividerLocation is at maximumDividerLocation",
            splitPane.getMaximumDividerLocation(), splitPane.getDividerLocation());

    splitPane.moveDivider(0.5);
    assertEquals("Move Middle, dividerLocation is at the artithmetic average of minimum and maximum DividerLocations",
            (splitPane.getMaximumDividerLocation() + splitPane.getMinimumDividerLocation()) / 2, splitPane.getDividerLocation());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:22,代码来源:SplitPaneDemoTest.java

示例5: testRadioButtons

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/**
 * Tests a group of radio buttons
 *
 * @param parent container containing the buttons
 * @param radioButtonCount number of radio buttons
 * @param selectedRadioButton initial selected radio button
 */
private void testRadioButtons(ContainerOperator<?> parent, int radioButtonCount, SelectedRadioButton selectedRadioButton) {
    JRadioButtonOperator[] jrbo = new JRadioButtonOperator[radioButtonCount];
    for (int i = 0; i < radioButtonCount; i++) {
        jrbo[i] = new JRadioButtonOperator(parent, i);
        if (selectedRadioButton != null && selectedRadioButton.apply(jrbo[i].getText(), i)) {
            assertTrue("Radio Button " + i + " is initially selected", jrbo[i].isSelected());
        } else {
            assertFalse("Radio Button " + i + " is initially not selected", jrbo[i].isSelected());
        }
    }

    for (int i = 0; i < radioButtonCount; i++) {
        jrbo[i].push();
        jrbo[i].waitSelected(true);

        for (int j = 0; j < radioButtonCount; j++) {
            if (i != j) {
                jrbo[j].waitSelected(false);
            }
        }
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:30,代码来源:ToggleButtonDemoTest.java

示例6: testRadioButtons

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/**
 * Tests a group of radio buttons
 *
 * @param parent container containing the buttons
 * @param radioButtonCount number of radio buttons
 * @param selectedRadioButton initial selected radio button
 */
private void testRadioButtons(ContainerOperator<?> parent, int radioButtonCount, SelectedRadioButton selectedRadioButton) {
    JRadioButtonOperator[] jrbo = new JRadioButtonOperator[radioButtonCount];
    for (int i = 0; i < radioButtonCount; i++) {
        jrbo[i] = new JRadioButtonOperator(parent, i);
        if (selectedRadioButton != null && selectedRadioButton.apply(jrbo[i].getText(), i)) {
            assertTrue("Radio Button " + i + " is initially selected", jrbo[i].isSelected());
        } else {
            assertFalse("Radio Button " + i + " is initially not selected", jrbo[i].isSelected());
        }
    }

    for (int i = 0; i < radioButtonCount; i++) {
        jrbo[i].doClick();
        assertTrue("Radio Button " + i + " is selected", jrbo[i].isSelected());

        for (int j = 0; j < radioButtonCount; j++) {
            if (i != j) {
                assertFalse("Radio Button " + j + " is not selected", jrbo[j].isSelected());
            }
        }
    }
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:30,代码来源:ToggleButtonDemoTest.java

示例7: testCreateJUnit3Project

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
public void testCreateJUnit3Project() {
    new Action("File|New Project", null).perform();
    NewProjectWizardOperator newOp = new NewProjectWizardOperator();
    newOp.selectCategory("Java");
    newOp.selectProject("Java Application");
    newOp.next();
    new JTextFieldOperator(newOp, 0).typeText(TEST_PROJECT_NAME);
    newOp.finish();

    new EventTool().waitNoEvent(5000);

    // select source packages node
    ProjectsTabOperator pto = new ProjectsTabOperator();
    ProjectRootNode prn = pto.getProjectRootNode(TEST_PROJECT_NAME);
    prn.select();
    Node node = new Node(prn, "Source Packages"); // NOI18N
    node.setComparator(new Operator.DefaultStringComparator(true, false));
    node.select();

    // create test
    new ActionNoBlock(null,"Tools|Create JUnit Test").perform(node);

    // select junit version
    NbDialogOperator versionOp = new NbDialogOperator("Select jUnit Version");
    new JRadioButtonOperator(versionOp, 0).setSelected(true);
    new JButtonOperator(versionOp,"Select").clickMouse();

    NbDialogOperator newTestOp = new NbDialogOperator("Create Tests");
    new JButtonOperator(newTestOp, "OK").clickMouse();

    new Action("Window|Close All Documents", null).perform();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:33,代码来源:CreateProjectTest.java

示例8: testFindOverridingMethodForStaticAvailable

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
public void testFindOverridingMethodForStaticAvailable() {
    final String fileName = "Test";
    openSourceFile("fumethod", fileName);
    EditorOperator editor = new EditorOperator(fileName);
    editor.setCaretPosition(55, 28);
    editor.select(55, 28, 29);

    new FindUsagesAction().performPopup(editor);
    new EventTool().waitNoEvent(5000);

    FindUsagesDialogOperator findUsagesClassOperator = null;
    findUsagesClassOperator = new FindUsagesDialogOperator();
    JRadioButtonOperator findOverriddingMethods = null;
    String message = "";
    Timeouts timeouts = JemmyProperties.getCurrentTimeouts();
    long origTimeout = timeouts.getTimeout("ComponentOperator.WaitComponentTimeout");
    try {
        timeouts.setTimeout("ComponentOperator.WaitComponentTimeout", 3000); // false expectation, so shorten the time
        findOverriddingMethods = findUsagesClassOperator.getFindOverriddingMethods();
    } catch (Exception ex) {
        message = ex.getMessage();
        log("Log expected exception : " + message);
    } finally {
        timeouts.setTimeout("ComponentOperator.WaitComponentTimeout", origTimeout);
    }

    String expected_message = "Wait AbstractButton with text \"Find Overriding Methods\" loaded (ComponentOperator.WaitComponentTimeout)";
    assertTrue("[Find Overriding Methods] radio button is not available", expected_message.equalsIgnoreCase(message) && findOverriddingMethods == null);
    findUsagesClassOperator.cancel();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:31,代码来源:FindUsagesMethodTest.java

示例9: testGenerateEmpty

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
public void testGenerateEmpty() {
//
        RepositoryTabOperator explorerOperator = new RepositoryTabOperator();
        
        Node repositoryRootNode = explorerOperator.getRootNode();
        Node patternsNode = new Node(repositoryRootNode, sampleDir+"|"+NAME_TEST_FILE+"|"+"class "+NAME_TEST_FILE+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "Patterns"));
        patternsNode.select();
        patternsNode.performPopupActionNoBlock(Bundle.getString("org.openide.src.nodes.Bundle", "LAB_Add")+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "MENU_CREATE_MULTICASTSE"));
        String dialogTitle = Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_TITLE_NewMultiCastES");
        NbDialogOperator nbDialogOperator = new NbDialogOperator(dialogTitle);

        JComboBoxOperator jComboBoxOperator = new JComboBoxOperator(nbDialogOperator, 0);
        jComboBoxOperator.setSelectedItem("java.awt.event.ActionListener");

        JRadioButtonOperator jRadioButtonOperator = new JRadioButtonOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_EventSetPanel_emptyRadioButton"));
        jRadioButtonOperator.push();        

        new EventTool().waitNoEvent(2000);
                               
        nbDialogOperator.ok();

        new JavaNode(repositoryRootNode, sampleDir + "|" + NAME_TEST_FILE).open();

        EditorOperator eo = new EditorOperator(NAME_TEST_FILE);
        ref(eo.getText());
        compareReferenceFiles();                               
//                                       
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:29,代码来源:NewMulticastEventSource.java

示例10: testGenerateArrayListImplementation

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
public void testGenerateArrayListImplementation() {
//
        RepositoryTabOperator explorerOperator = new RepositoryTabOperator();
        
        Node repositoryRootNode = explorerOperator.getRootNode();
        Node patternsNode = new Node(repositoryRootNode, sampleDir+"|"+NAME_TEST_FILE+"|"+"class "+NAME_TEST_FILE+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "Patterns"));
        patternsNode.select();
        patternsNode.performPopupActionNoBlock(Bundle.getString("org.openide.src.nodes.Bundle", "LAB_Add")+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "MENU_CREATE_MULTICASTSE"));
        String dialogTitle = Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_TITLE_NewMultiCastES");
        NbDialogOperator nbDialogOperator = new NbDialogOperator(dialogTitle);

        JComboBoxOperator jComboBoxOperator = new JComboBoxOperator(nbDialogOperator, 0);
        jComboBoxOperator.setSelectedItem("java.awt.event.ActionListener");

        JRadioButtonOperator jRadioButtonOperator = new JRadioButtonOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_EventSetPanel_alRadioButton"));
        jRadioButtonOperator.push();        

        new EventTool().waitNoEvent(2000);
                               
        nbDialogOperator.ok();

        new JavaNode(repositoryRootNode, sampleDir + "|" + NAME_TEST_FILE).open();

        EditorOperator eo = new EditorOperator(NAME_TEST_FILE);
        ref(eo.getText());
        compareReferenceFiles();                               
//                                       
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:29,代码来源:NewMulticastEventSource.java

示例11: testGenerateEventListenerListImplementation

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
public void testGenerateEventListenerListImplementation() {
//
        RepositoryTabOperator explorerOperator = new RepositoryTabOperator();
        
        Node repositoryRootNode = explorerOperator.getRootNode();
        Node patternsNode = new Node(repositoryRootNode, sampleDir+"|"+NAME_TEST_FILE+"|"+"class "+NAME_TEST_FILE+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "Patterns"));
        patternsNode.select();
        patternsNode.performPopupActionNoBlock(Bundle.getString("org.openide.src.nodes.Bundle", "LAB_Add")+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "MENU_CREATE_MULTICASTSE"));
        String dialogTitle = Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_TITLE_NewMultiCastES");
        NbDialogOperator nbDialogOperator = new NbDialogOperator(dialogTitle);

        JComboBoxOperator jComboBoxOperator = new JComboBoxOperator(nbDialogOperator, 0);
        jComboBoxOperator.setSelectedItem("java.awt.event.ActionListener");

        JRadioButtonOperator jRadioButtonOperator = new JRadioButtonOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_EventSetPanel_ellRadioButton"));
        jRadioButtonOperator.push();        

        new EventTool().waitNoEvent(3000);
                               
        nbDialogOperator.ok();

        new JavaNode(repositoryRootNode, sampleDir + "|" + NAME_TEST_FILE).open();

        EditorOperator eo = new EditorOperator(NAME_TEST_FILE);
        ref(eo.getText());
        compareReferenceFiles();                               
//                                       
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:29,代码来源:NewMulticastEventSource.java

示例12: testGenerateEventFiringMethods

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
public void testGenerateEventFiringMethods() {
//
        RepositoryTabOperator explorerOperator = new RepositoryTabOperator();
        
        Node repositoryRootNode = explorerOperator.getRootNode();
        Node patternsNode = new Node(repositoryRootNode, sampleDir+"|"+NAME_TEST_FILE+"|"+"class "+NAME_TEST_FILE+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "Patterns"));
        patternsNode.select();
        patternsNode.performPopupActionNoBlock(Bundle.getString("org.openide.src.nodes.Bundle", "LAB_Add")+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "MENU_CREATE_MULTICASTSE"));
        String dialogTitle = Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_TITLE_NewMultiCastES");
        NbDialogOperator nbDialogOperator = new NbDialogOperator(dialogTitle);

        JComboBoxOperator jComboBoxOperator = new JComboBoxOperator(nbDialogOperator, 0);
        jComboBoxOperator.setSelectedItem("java.awt.event.ActionListener");

        JRadioButtonOperator jRadioButtonOperator = new JRadioButtonOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_EventSetPanel_alRadioButton"));
        jRadioButtonOperator.push();        
        JCheckBoxOperator jCheckBoxOperator = new JCheckBoxOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle","CTL_EventSetPanel_fireCheckBox"));
        jCheckBoxOperator.push();

        new EventTool().waitNoEvent(3000);
                               
        nbDialogOperator.ok();

        new JavaNode(repositoryRootNode, sampleDir + "|" + NAME_TEST_FILE).open();

        EditorOperator eo = new EditorOperator(NAME_TEST_FILE);
        ref(eo.getText());
        compareReferenceFiles();                               
//                                       
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:31,代码来源:NewMulticastEventSource.java

示例13: testGenerateEmpty

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/** testGenerateEmpty method */
    public void testGenerateEmpty() {
//
        RepositoryTabOperator explorerOperator = new RepositoryTabOperator();
        
        Node repositoryRootNode = explorerOperator.getRootNode();
        Node patternsNode = new Node(repositoryRootNode, sampleDir+"|"+NAME_TEST_FILE+"|"+"class "+NAME_TEST_FILE+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "Patterns"));
        patternsNode.select();
        patternsNode.performPopupActionNoBlock("Add"+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "MENU_CREATE_UNICASTSE"));
        String dialogTitle = Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_TITLE_NewUniCastES");
        NbDialogOperator nbDialogOperator = new NbDialogOperator(dialogTitle);

        JComboBoxOperator jComboBoxOperator = new JComboBoxOperator(nbDialogOperator, 0);
        jComboBoxOperator.setSelectedItem("java.awt.event.ActionListener");

        JRadioButtonOperator jRadioButtonOperator = new JRadioButtonOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_UEventSetPanel_emptyRadioButton"));
        jRadioButtonOperator.push();        

        new EventTool().waitNoEvent(2000);
                               
        nbDialogOperator.ok();
        
        new JavaNode(repositoryRootNode, sampleDir + "|" + NAME_TEST_FILE).open();

        EditorOperator eo = new EditorOperator(NAME_TEST_FILE);
        ref(eo.getText());
        compareReferenceFiles();                               
//                                       
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:30,代码来源:NewUnicastEventSource.java

示例14: testGenerateImplementation

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/** testGenerateImplementation method */
     public void testGenerateImplementation() {
//
        RepositoryTabOperator explorerOperator = new RepositoryTabOperator();
        
        Node repositoryRootNode = explorerOperator.getRootNode();
        Node patternsNode = new Node(repositoryRootNode, sampleDir+"|"+NAME_TEST_FILE+"|"+"class "+NAME_TEST_FILE+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "Patterns"));
        patternsNode.select();
        patternsNode.performPopupActionNoBlock(Bundle.getString("org.openide.src.nodes.Bundle", "LAB_Add")+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "MENU_CREATE_UNICASTSE"));
        String dialogTitle = Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_TITLE_NewUniCastES");
        NbDialogOperator nbDialogOperator = new NbDialogOperator(dialogTitle);

        JComboBoxOperator jComboBoxOperator = new JComboBoxOperator(nbDialogOperator, 0);
        jComboBoxOperator.setSelectedItem("java.awt.event.ActionListener");

        JRadioButtonOperator jRadioButtonOperator = new JRadioButtonOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_UEventSetPanel_implRadioButton"));
        jRadioButtonOperator.push();        

        new EventTool().waitNoEvent(2000);
                               
        nbDialogOperator.ok();

        new JavaNode(repositoryRootNode, sampleDir + "|" + NAME_TEST_FILE).open();

        EditorOperator eo = new EditorOperator(NAME_TEST_FILE);
        ref(eo.getText());
        compareReferenceFiles();                               
//                                       
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:30,代码来源:NewUnicastEventSource.java

示例15: testGenerateEventFiringMethods

import org.netbeans.jemmy.operators.JRadioButtonOperator; //导入依赖的package包/类
/** testGenerateEventFiringMethods method */
     public void testGenerateEventFiringMethods() {
//
        RepositoryTabOperator explorerOperator = new RepositoryTabOperator();
        
        Node repositoryRootNode = explorerOperator.getRootNode();
        Node patternsNode = new Node(repositoryRootNode, sampleDir+"|"+NAME_TEST_FILE+"|"+"class "+NAME_TEST_FILE+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "Patterns"));
        patternsNode.select();
        patternsNode.performPopupActionNoBlock(Bundle.getString("org.openide.src.nodes.Bundle", "LAB_Add")+"|"+Bundle.getString("org.netbeans.modules.beans.Bundle", "MENU_CREATE_UNICASTSE"));
        String dialogTitle = Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_TITLE_NewUniCastES");
        NbDialogOperator nbDialogOperator = new NbDialogOperator(dialogTitle);

        JComboBoxOperator jComboBoxOperator = new JComboBoxOperator(nbDialogOperator, 0);
        jComboBoxOperator.setSelectedItem("java.awt.event.ActionListener");

        JRadioButtonOperator jRadioButtonOperator = new JRadioButtonOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle", "CTL_UEventSetPanel_implRadioButton"));
        jRadioButtonOperator.push();        

        JCheckBoxOperator jCheckBoxOperator = new JCheckBoxOperator(nbDialogOperator, Bundle.getString("org.netbeans.modules.beans.Bundle","CTL_UEventSetPanel_fireCheckBox"));
        jCheckBoxOperator.push();
        
        new EventTool().waitNoEvent(2000);
                               
        nbDialogOperator.ok();

        new JavaNode(repositoryRootNode, sampleDir + "|" + NAME_TEST_FILE).open();

        EditorOperator eo = new EditorOperator(NAME_TEST_FILE);
        ref(eo.getText());
        compareReferenceFiles();                               
//                                       
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:33,代码来源:NewUnicastEventSource.java


注:本文中的org.netbeans.jemmy.operators.JRadioButtonOperator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。