@Test public void testModifyTestElement() { System.out.println("modifyTestElement"); UltimateThreadGroup tg = new UltimateThreadGroup(); UltimateThreadGroupGui instance = new UltimateThreadGroupGui(); instance.tableModel = UltimateThreadGroupTest.getTestModel(); instance.modifyTestElement(tg); CollectionProperty data = (CollectionProperty) tg.getData(); assertEquals(3, data.size()); assertEquals("[[1, 2, 3, 4, 44], [5, 6, 7, 8, 88], [9, 10, 11, 12, 122]]", data.toString()); }
@Override public void modifyTestElement(TestElement tg) { if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof UltimateThreadGroup) { UltimateThreadGroup utg = (UltimateThreadGroup) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, UltimateThreadGroup.DATA_PROPERTY); utg.setData(rows); utg.setSamplerController((LoopController) loopPanel.createTestElement()); } super.configureTestElement(tg); }
UltimateThreadGroupGui extends AbstractThreadGroupGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof UltimateThreadGroup) { UltimateThreadGroup utg = (UltimateThreadGroup) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, UltimateThreadGroup.DATA_PROPERTY); utg.setData(rows); utg.setSamplerController((LoopController) loopPanel.createTestElement()); } super.configureTestElement(tg); } }
UltimateThreadGroupGui extends AbstractThreadGroupGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof UltimateThreadGroup) { UltimateThreadGroup utg = (UltimateThreadGroup) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, UltimateThreadGroup.DATA_PROPERTY); utg.setData(rows); utg.setSamplerController((LoopController) loopPanel.createTestElement()); } super.configureTestElement(tg); } UltimateThreadGroupGui(); }
UltimateThreadGroupGui extends AbstractThreadGroupGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof UltimateThreadGroup) { UltimateThreadGroup utg = (UltimateThreadGroup) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, UltimateThreadGroup.DATA_PROPERTY); utg.setData(rows); utg.setSamplerController((LoopController) loopPanel.createTestElement()); } super.configureTestElement(tg); } UltimateThreadGroupGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement tg); @Override void configure(TestElement tg); @Override void updateUI(); void tableChanged(TableModelEvent e); void editingStopped(ChangeEvent e); void editingCanceled(ChangeEvent e); @Override void clearGui(); }
UltimateThreadGroupGui extends AbstractThreadGroupGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof UltimateThreadGroup) { UltimateThreadGroup utg = (UltimateThreadGroup) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, UltimateThreadGroup.DATA_PROPERTY); utg.setData(rows); utg.setSamplerController((LoopController) loopPanel.createTestElement()); } super.configureTestElement(tg); } UltimateThreadGroupGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement tg); @Override void configure(TestElement tg); @Override void updateUI(); void tableChanged(TableModelEvent e); void editingStopped(ChangeEvent e); void editingCanceled(ChangeEvent e); @Override void clearGui(); static final String WIKIPAGE; static final String[] columnIdentifiers; static final Class[] columnClasses; static final Integer[] defaultValues; }