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