public void afterUseProxy() { refreshLayout(getForm(Form.MAIN)); }
@Test public void testProxyProperties() throws Throwable { ProxyProperties props = (ProxyProperties) new ProxyProperties("proxy").init(); Form mainForm = props.getForm(Form.MAIN); assertTrue(mainForm.getWidget("host").isHidden()); assertTrue(mainForm.getWidget("userPassword").isHidden()); props.useProxy.setValue(true); assertTrue(mainForm.getWidget("useProxy").isCallAfter()); PropertiesDynamicMethodHelper.afterProperty(props, "useProxy"); assertFalse(mainForm.getWidget("host").isHidden()); assertFalse(mainForm.getWidget("userPassword").isHidden()); } }
advancedForm.addRow(clientId); advancedForm.addRow(timeout); advancedForm.addRow(proxy.getForm(Form.MAIN)); advanced.setFormtoShow(advancedForm);
form.getWidget(httpTraceMessage.getName()).setHidden(!bulkMode); Form proxyForm = form.getChildForm(proxy.getName()); if (proxyForm != null) { boolean isUseProxy = proxy.useProxy.getValue();
@Test public void testAlli18n() { ComponentTestUtils.checkAllI18N(new BulkFileProperties(null).init(), errorCollector); ComponentTestUtils.checkAllI18N(new FixedConnectorsComponentProperties(null) { @Override protected Set<PropertyPathConnector> getAllSchemaPropertiesConnectors(boolean isOutputConnection) { // TODO Auto-generated method stub return null; } }.init(), errorCollector); ComponentTestUtils.checkAllI18N(new ProxyProperties(null).init(), errorCollector); ComponentTestUtils.checkAllI18N(new SchemaProperties(null).init(), errorCollector); ComponentTestUtils.checkAllI18N(new UserPasswordProperties(null).init(), errorCollector); ComponentTestUtils.checkAllI18N(new SslProperties(null).init(), errorCollector); }
advancedForm.addRow(clientId); advancedForm.addRow(timeout); advancedForm.addRow(proxy.getForm(Form.MAIN)); advanced.setFormtoShow(advancedForm);
form.getWidget(apiVersion.getName()).setHidden(isBasicLogin); Form proxyForm = form.getChildForm(proxy.getName()); if (proxyForm != null) { boolean isUseProxy = proxy.useProxy.getValue();
@Test public void testSetProxy() { ProxyProperties proxyProperties = (ProxyProperties) new ProxyProperties("proxy").init(); proxyProperties.useProxy.setValue(true); proxyProperties.host.setValue("192.168.32.162");
public void afterUseProxy() { refreshLayout(getForm(Form.MAIN)); }
advancedForm.addRow(clientId); advancedForm.addRow(timeout); advancedForm.addRow(proxy.getForm(Form.MAIN)); advanced.setFormtoShow(advancedForm);
form.getWidget(apiVersion.getName()).setHidden(isBasicLogin); Form proxyForm = form.getChildForm(proxy.getName()); if (proxyForm != null) { boolean isUseProxy = proxy.useProxy.getValue();