@Test public void testConfigure_NullProperty() { System.out.println("configure"); TestElement el = new ResultCollector(); el.setProperty(new StringProperty(MergeResultsGui.FILENAME, "fusionRes.csv")); MergeResultsGui instance = new MergeResultsGui(); instance.configure(el); }
@Override public void configure(TestElement el) { super.configure(el); setFile(el.getPropertyAsString(CorrectedResultCollector.FILENAME)); JMeterProperty fileValues = el.getProperty(DATA_PROPERTY); if (!(fileValues instanceof NullProperty)) { CollectionProperty columns = (CollectionProperty) fileValues; tableModel.removeTableModelListener(this); JMeterPluginsUtils.collectionPropertyToTableModelRows(columns, tableModel, columnClasses); tableModel.addTableModelListener(this); updateUI(); } else { log.warn("Received null property instead of collection"); } checkDeleteButtonStatus(); checkMergeButtonStatus(); startTimeRef = 0; }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { @Override public void configure(TestElement el) { super.configure(el); setFile(el.getPropertyAsString(CorrectedResultCollector.FILENAME)); JMeterProperty fileValues = el.getProperty(DATA_PROPERTY); if (!(fileValues instanceof NullProperty)) { CollectionProperty columns = (CollectionProperty) fileValues; tableModel.removeTableModelListener(this); JMeterPluginsUtils.collectionPropertyToTableModelRows(columns, tableModel, columnClasses); tableModel.addTableModelListener(this); updateUI(); } else { log.warn("Received null property instead of collection"); } checkDeleteButtonStatus(); checkMergeButtonStatus(); startTimeRef = 0; } }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { @Override public void configure(TestElement el) { super.configure(el); setFile(el.getPropertyAsString(CorrectedResultCollector.FILENAME)); JMeterProperty fileValues = el.getProperty(DATA_PROPERTY); if (!(fileValues instanceof NullProperty)) { CollectionProperty columns = (CollectionProperty) fileValues; tableModel.removeTableModelListener(this); JMeterPluginsUtils.collectionPropertyToTableModelRows(columns, tableModel, columnClasses); tableModel.addTableModelListener(this); updateUI(); } else { log.warn("Received null property instead of collection"); } checkDeleteButtonStatus(); checkMergeButtonStatus(); startTimeRef = 0; } MergeResultsGui(); }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { @Override public void configure(TestElement el) { super.configure(el); setFile(el.getPropertyAsString(CorrectedResultCollector.FILENAME)); JMeterProperty fileValues = el.getProperty(DATA_PROPERTY); if (!(fileValues instanceof NullProperty)) { CollectionProperty columns = (CollectionProperty) fileValues; tableModel.removeTableModelListener(this); JMeterPluginsUtils.collectionPropertyToTableModelRows(columns, tableModel, columnClasses); tableModel.addTableModelListener(this); updateUI(); } else { log.warn("Received null property instead of collection"); } checkDeleteButtonStatus(); checkMergeButtonStatus(); startTimeRef = 0; } MergeResultsGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override Collection<String> getMenuCategories(); void setFile(String filename); String getFile(); String getWikiPage(); JTable getGrid(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void updateUI(); @Override void add(SampleResult res); @Override void setUpFiltering(CorrectedResultCollector rc); void actionPerformed(ActionEvent action); void checkDeleteButtonStatus(); void checkMergeButtonStatus(); void tableChanged(TableModelEvent e); void editingStopped(ChangeEvent e); void editingCanceled(ChangeEvent e); @Override void stateChanged(ChangeEvent e); @Override Dimension getPreferredSize(); @Override void clearGui(); @Override GraphPanelChart getGraphPanelChart(); }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { @Override public void configure(TestElement el) { super.configure(el); setFile(el.getPropertyAsString(CorrectedResultCollector.FILENAME)); JMeterProperty fileValues = el.getProperty(DATA_PROPERTY); if (!(fileValues instanceof NullProperty)) { CollectionProperty columns = (CollectionProperty) fileValues; tableModel.removeTableModelListener(this); JMeterPluginsUtils.collectionPropertyToTableModelRows(columns, tableModel, columnClasses); tableModel.addTableModelListener(this); updateUI(); } else { log.warn("Received null property instead of collection"); } checkDeleteButtonStatus(); checkMergeButtonStatus(); startTimeRef = 0; } MergeResultsGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override Collection<String> getMenuCategories(); void setFile(String filename); String getFile(); String getWikiPage(); JTable getGrid(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void updateUI(); @Override void add(SampleResult res); @Override void setUpFiltering(CorrectedResultCollector rc); void actionPerformed(ActionEvent action); void checkDeleteButtonStatus(); void checkMergeButtonStatus(); void tableChanged(TableModelEvent e); void editingStopped(ChangeEvent e); void editingCanceled(ChangeEvent e); @Override void stateChanged(ChangeEvent e); @Override Dimension getPreferredSize(); @Override void clearGui(); @Override GraphPanelChart getGraphPanelChart(); static final String WIKIPAGE; static final String[] columnIdentifiers; static final Class<?>[] columnClasses; static final Object[] defaultValues; static final String DEFAULT_FILENAME; static final String FILENAME; static final String DATA_PROPERTY; static final int INPUT_FILE_NAME; static final int PREFIX_LABEL; static final int OFFSET_START; static final int OFFSET_END; static final int INCLUDE_LABEL; static final int REGEX_INCLUDE; static final int EXCLUDE_LABEL; static final int REGEX_EXCLUDE; }