@Test public void testConfigure() { System.out.println("configure"); TestElement element = new UDPSampler(); UDPSamplerGui instance = new UDPSamplerGui(); instance.configure(element); }
@Override public void configure(TestElement element) { super.configure(element); if (element instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) element; hostName.setText(sampler.getHostName()); port.setText(sampler.getPort()); timeout.setText(sampler.getTimeout()); waitResponse.setSelected(sampler.isWaitResponse()); closeChannel.setSelected(sampler.isCloseChannel()); messageEncodeClass.setText(sampler.getEncoderClass()); requestData.setText(sampler.getRequestData()); bindAddress.setText(sampler.getBindAddress()); bindPort.setText(sampler.getBindPort()); } }
UDPSamplerGui extends AbstractSamplerGui { @Override public void configure(TestElement element) { super.configure(element); if (element instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) element; hostName.setText(sampler.getHostName()); port.setText(sampler.getPort()); timeout.setText(sampler.getTimeout()); waitResponse.setSelected(sampler.isWaitResponse()); closeChannel.setSelected(sampler.isCloseChannel()); messageEncodeClass.setText(sampler.getEncoderClass()); requestData.setText(sampler.getRequestData()); bindAddress.setText(sampler.getBindAddress()); bindPort.setText(sampler.getBindPort()); } } }
UDPSamplerGui extends AbstractSamplerGui { @Override public void configure(TestElement element) { super.configure(element); if (element instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) element; hostName.setText(sampler.getHostName()); port.setText(sampler.getPort()); timeout.setText(sampler.getTimeout()); waitResponse.setSelected(sampler.isWaitResponse()); closeChannel.setSelected(sampler.isCloseChannel()); messageEncodeClass.setText(sampler.getEncoderClass()); requestData.setText(sampler.getRequestData()); bindAddress.setText(sampler.getBindAddress()); bindPort.setText(sampler.getBindPort()); } } UDPSamplerGui(); }
UDPSamplerGui extends AbstractSamplerGui { @Override public void configure(TestElement element) { super.configure(element); if (element instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) element; hostName.setText(sampler.getHostName()); port.setText(sampler.getPort()); timeout.setText(sampler.getTimeout()); waitResponse.setSelected(sampler.isWaitResponse()); closeChannel.setSelected(sampler.isCloseChannel()); messageEncodeClass.setText(sampler.getEncoderClass()); requestData.setText(sampler.getRequestData()); bindAddress.setText(sampler.getBindAddress()); bindPort.setText(sampler.getBindPort()); } } 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 configure(TestElement element) { super.configure(element); if (element instanceof UDPSampler) { UDPSampler sampler = (UDPSampler) element; hostName.setText(sampler.getHostName()); port.setText(sampler.getPort()); timeout.setText(sampler.getTimeout()); waitResponse.setSelected(sampler.isWaitResponse()); closeChannel.setSelected(sampler.isCloseChannel()); messageEncodeClass.setText(sampler.getEncoderClass()); requestData.setText(sampler.getRequestData()); bindAddress.setText(sampler.getBindAddress()); bindPort.setText(sampler.getBindPort()); } } UDPSamplerGui(); @Override String getStaticLabel(); @Override String getLabelResource(); @Override void configure(TestElement element); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement el); @Override void clearGui();  }