IDEValidation.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
/** 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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号