Class EntityLoadTestUtil
java.lang.Object
is.codion.swing.framework.model.tools.loadtest.EntityLoadTestUtil
A utility class for load testing SwingEntityApplicationModel instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
selectRandomItem
(EntityComboBoxModel comboBoxModel) Selects a random non-null visible item in the given combobox model, if one is availablestatic void
selectRandomRow
(EntityTableModel<?> tableModel) Selects a random row in the given table modelstatic void
selectRandomRows
(EntityTableModel<?> tableModel, double ratio) Selects random rows in the given table modelstatic void
selectRandomRows
(EntityTableModel<?> tableModel, int count) Selects random rows in the given table model
-
Method Details
-
selectRandomRow
Selects a random row in the given table model- Parameters:
tableModel
- the table model
-
selectRandomRows
Selects random rows in the given table model- Parameters:
tableModel
- the table modelcount
- the number of rows to select
-
selectRandomRows
Selects random rows in the given table model- Parameters:
tableModel
- the table modelratio
- the ratio of available rows to select
-
selectRandomItem
Selects a random non-null visible item in the given combobox model, if one is available- Parameters:
comboBoxModel
- the combobox model
-