Пример #1
0
    public void actionPerformed(ActionEvent e) {
      int ix = table.getSelectedRow();
      if (ix == -1) return;
      ix = table.convertRowIndexToModel(ix);

      LoadTestAssertion assertion = loadTest.getAssertionAt(ix);
      if (UISupport.confirm("Remove assertion [" + assertion.getName() + "]", "Remove Assertion")) {
        loadTest.removeAssertion(assertion);
      }
    }
Пример #2
0
    public Object getValueAt(int rowIndex, int columnIndex) {
      LoadTestAssertion assertion = loadTest.getAssertionAt(rowIndex);

      switch (columnIndex) {
        case 0:
          return assertion.getIcon();
        case 1:
          return assertion.getName();
        case 2:
          return assertion.getTargetStep();
        case 3:
          return assertion.getDescription();
      }

      return null;
    }
Пример #3
0
 public void assertionAdded(LoadTestAssertion assertion) {
   assertion.addPropertyChangeListener(LoadTestAssertion.CONFIGURATION_PROPERTY, this);
   fireTableRowsInserted(getRowCount() - 1, getRowCount() - 1);
 }
Пример #4
0
 public void assertionRemoved(LoadTestAssertion assertion) {
   assertion.removePropertyChangeListener(LoadTestAssertion.CONFIGURATION_PROPERTY, this);
   fireTableDataChanged();
 }