@Test public void testModifyTestElement() { System.out.println("modifyTestElement"); TestElement sampler = new UDPSampler(); UDPSamplerGui instance = new UDPSamplerGui(); instance.modifyTestElement(sampler); }
@Override public void modifyTestElement(TestElement el) { super.configureTestElement(el); if (el instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) el; sampler.setHostName(hostName.getText()); sampler.setPort(port.getText()); sampler.setWaitResponse(waitResponse.isSelected()); sampler.setCloseChannel(closeChannel.isSelected()); sampler.setTimeout(timeout.getText()); sampler.setRequestData(transformCRLF(requestData.getText())); sampler.setEncoderClass(messageEncodeClass.getText()); sampler.setBindAddress(bindAddress.getText()); sampler.setBindPort(bindPort.getText()); } }
UDPSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement el) { super.configureTestElement(el); if (el instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) el; sampler.setHostName(hostName.getText()); sampler.setPort(port.getText()); sampler.setWaitResponse(waitResponse.isSelected()); sampler.setCloseChannel(closeChannel.isSelected()); sampler.setTimeout(timeout.getText()); sampler.setRequestData(transformCRLF(requestData.getText())); sampler.setEncoderClass(messageEncodeClass.getText()); sampler.setBindAddress(bindAddress.getText()); sampler.setBindPort(bindPort.getText()); } } }
UDPSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement el) { super.configureTestElement(el); if (el instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) el; sampler.setHostName(hostName.getText()); sampler.setPort(port.getText()); sampler.setWaitResponse(waitResponse.isSelected()); sampler.setCloseChannel(closeChannel.isSelected()); sampler.setTimeout(timeout.getText()); sampler.setRequestData(transformCRLF(requestData.getText())); sampler.setEncoderClass(messageEncodeClass.getText()); sampler.setBindAddress(bindAddress.getText()); sampler.setBindPort(bindPort.getText()); } } UDPSamplerGui(); }
UDPSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement el) { super.configureTestElement(el); if (el instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) el; sampler.setHostName(hostName.getText()); sampler.setPort(port.getText()); sampler.setWaitResponse(waitResponse.isSelected()); sampler.setCloseChannel(closeChannel.isSelected()); sampler.setTimeout(timeout.getText()); sampler.setRequestData(transformCRLF(requestData.getText())); sampler.setEncoderClass(messageEncodeClass.getText()); sampler.setBindAddress(bindAddress.getText()); sampler.setBindPort(bindPort.getText()); } } UDPSamplerGui(); @Override String getStaticLabel(); @Override String getLabelResource(); @Override void configure(TestElement element); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement el); @Override void clearGui(); }
UDPSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement el) { super.configureTestElement(el); if (el instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) el; sampler.setHostName(hostName.getText()); sampler.setPort(port.getText()); sampler.setWaitResponse(waitResponse.isSelected()); sampler.setCloseChannel(closeChannel.isSelected()); sampler.setTimeout(timeout.getText()); sampler.setRequestData(transformCRLF(requestData.getText())); sampler.setEncoderClass(messageEncodeClass.getText()); sampler.setBindAddress(bindAddress.getText()); sampler.setBindPort(bindPort.getText()); } } UDPSamplerGui(); @Override String getStaticLabel(); @Override String getLabelResource(); @Override void configure(TestElement element); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement el); @Override void clearGui();  }