use of kg.apc.jmeter.jmxmon.JMXMonCollector in project jmeter-plugins by undera.
the class JMXMonGuiTest method testCreateTestElement.
@Test
public void testCreateTestElement() {
System.out.println("createTestElement");
JMXMonGui instance = new JMXMonGui();
TestElement result = instance.createTestElement();
assertTrue(result instanceof JMXMonCollector);
}
use of kg.apc.jmeter.jmxmon.JMXMonCollector in project jmeter-plugins by undera.
the class JMXMonGui method configure.
@Override
public void configure(TestElement te) {
super.configure(te);
JMXMonCollector dmte = (JMXMonCollector) te;
JMeterProperty jmxmonValues = dmte.getSamplerSettings();
if (!(jmxmonValues instanceof NullProperty)) {
JMeterPluginsUtils.collectionPropertyToTableModelRows((CollectionProperty) jmxmonValues, tableModel, columnClasses);
} else {
log.warn("Received null property instead of collection");
}
}
use of kg.apc.jmeter.jmxmon.JMXMonCollector in project jmeter-plugins by undera.
the class JMXMonGui method modifyTestElement.
@Override
public void modifyTestElement(TestElement te) {
super.modifyTestElement(te);
if (grid.isEditing()) {
grid.getCellEditor().stopCellEditing();
}
if (te instanceof JMXMonCollector) {
JMXMonCollector dmte = (JMXMonCollector) te;
CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, JMXMonCollector.DATA_PROPERTY);
dmte.setData(rows);
}
super.configureTestElement(te);
}
use of kg.apc.jmeter.jmxmon.JMXMonCollector in project jmeter-plugins by undera.
the class JMXMonGuiTest method testModifyTestElement.
@Test
public void testModifyTestElement() {
System.out.println("modifyTestElement");
TestElement c = new JMXMonCollector();
JMXMonGui instance = new JMXMonGui();
instance.modifyTestElement(c);
}
use of kg.apc.jmeter.jmxmon.JMXMonCollector in project jmeter-plugins by undera.
the class JMXMonGuiTest method testConfigure.
@Test
public void testConfigure() {
System.out.println("configure");
TestElement el = new JMXMonCollector();
JMXMonGui instance = new JMXMonGui();
instance.configure(el);
}
Aggregations