@Test public void testActionPerformed() { System.out.println("actionPerformed"); HttpSimpleTableControlGui instance = new HttpSimpleTableControlGui(); instance.createTestElement(); ActionEvent actionStart = new ActionEvent(new JButton(), 1, "start"); instance.actionPerformed(actionStart); ActionEvent actionStop = new ActionEvent(new JButton(), 2, "stop"); instance.actionPerformed(actionStop); ActionEvent actionPause = new ActionEvent(new JButton(), 2, "pause"); instance.actionPerformed(actionPause); }
@Override public void actionPerformed(ActionEvent action) { String command = action.getActionCommand(); Exception except = null; if (command.equals(ACTION_STOP)) { simpleTableController.stopHttpSimpleTable(); stop.setEnabled(false); start.setEnabled(true); } else if (command.equals(ACTION_START)) { modifyTestElement(simpleTableController); try { simpleTableController.startHttpSimpleTable(); } catch (IOException e) { e.printStackTrace(); except = e; } if (null == except) { start.setEnabled(false); stop.setEnabled(true); } } }
HttpSimpleTableControlGui extends LogicControllerGui implements
        JMeterGUIComponent, ActionListener, UnsharedComponent { @Override public void actionPerformed(ActionEvent action) { String command = action.getActionCommand(); Exception except = null; if (command.equals(ACTION_STOP)) { simpleTableController.stopHttpSimpleTable(); stop.setEnabled(false); start.setEnabled(true); } else if (command.equals(ACTION_START)) { modifyTestElement(simpleTableController); try { simpleTableController.startHttpSimpleTable(); } catch (IOException e) { e.printStackTrace(); except = e; } if (null == except) { start.setEnabled(false); stop.setEnabled(true); } } } }
HttpSimpleTableControlGui extends LogicControllerGui implements
        JMeterGUIComponent, ActionListener, UnsharedComponent { @Override public void actionPerformed(ActionEvent action) { String command = action.getActionCommand(); Exception except = null; if (command.equals(ACTION_STOP)) { simpleTableController.stopHttpSimpleTable(); stop.setEnabled(false); start.setEnabled(true); } else if (command.equals(ACTION_START)) { modifyTestElement(simpleTableController); try { simpleTableController.startHttpSimpleTable(); } catch (IOException e) { e.printStackTrace(); except = e; } if (null == except) { start.setEnabled(false); stop.setEnabled(true); } } } HttpSimpleTableControlGui(); }
HttpSimpleTableControlGui extends LogicControllerGui implements
        JMeterGUIComponent, ActionListener, UnsharedComponent { @Override public void actionPerformed(ActionEvent action) { String command = action.getActionCommand(); Exception except = null; if (command.equals(ACTION_STOP)) { simpleTableController.stopHttpSimpleTable(); stop.setEnabled(false); start.setEnabled(true); } else if (command.equals(ACTION_START)) { modifyTestElement(simpleTableController); try { simpleTableController.startHttpSimpleTable(); } catch (IOException e) { e.printStackTrace(); except = e; } if (null == except) { start.setEnabled(false); stop.setEnabled(true); } } } HttpSimpleTableControlGui(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement el); String getLabelResource(); @Override String getStaticLabel(); @Override Collection<String> getMenuCategories(); @Override void configure(TestElement element); @Override void actionPerformed(ActionEvent action); @Override void clearGui(); }
HttpSimpleTableControlGui extends LogicControllerGui implements
        JMeterGUIComponent, ActionListener, UnsharedComponent { @Override public void actionPerformed(ActionEvent action) { String command = action.getActionCommand(); Exception except = null; if (command.equals(ACTION_STOP)) { simpleTableController.stopHttpSimpleTable(); stop.setEnabled(false); start.setEnabled(true); } else if (command.equals(ACTION_START)) { modifyTestElement(simpleTableController); try { simpleTableController.startHttpSimpleTable(); } catch (IOException e) { e.printStackTrace(); except = e; } if (null == except) { start.setEnabled(false); stop.setEnabled(true); } } } HttpSimpleTableControlGui(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement el); String getLabelResource(); @Override String getStaticLabel(); @Override Collection<String> getMenuCategories(); @Override void configure(TestElement element); @Override void actionPerformed(ActionEvent action); @Override void clearGui(); static final String WIKIPAGE; }