Package is.codion.framework.model.test
Class AbstractEntityTableModelTest<EditModel extends EntityEditModel,TableModel extends EntityTableModel<EditModel>>
java.lang.Object
is.codion.framework.model.test.AbstractEntityTableModelTest<EditModel,TableModel>
- Type Parameters:
EditModel
- theEntityEditModel
typeTableModel
- theEntityTableModel
type
public abstract class AbstractEntityTableModelTest<EditModel extends EntityEditModel,TableModel extends EntityTableModel<EditModel>>
extends Object
A base class for testing
EntityTableModel
subclasses.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected final EntityConnectionProvider
protected abstract TableModel
protected abstract EditModel
createEditModel
(EntityType entityType, EntityConnectionProvider connectionProvider) protected abstract TableModel
createTableModel
(EditModel editModel) protected abstract TableModel
createTableModel
(EntityType entityType, EntityConnectionProvider connectionProvider) protected abstract TableModel
void
void
void
void
void
limit()
void
onInsert()
void
void
select()
void
void
void
-
Field Details
-
testEntities
-
testModel
-
-
Constructor Details
-
AbstractEntityTableModelTest
protected AbstractEntityTableModelTest()
-
-
Method Details
-
select
@Test public void select() -
selectedEntitiesIterator
@Test public void selectedEntitiesIterator() -
onInsert
- Throws:
DatabaseException
ValidationException
-
removeDeletedEntities
- Throws:
DatabaseException
-
findSingle
@Test public void findSingle() -
entityType
@Test public void entityType() -
deleteNotEnabled
@Test public void deleteNotEnabled() -
testTheRest
@Test public void testTheRest() -
findMultiple
@Test public void findMultiple() -
attributes
@Test public void attributes() -
limit
@Test public void limit() -
conditionChangedListener
@Test public void conditionChangedListener() -
testSearchState
@Test public void testSearchState() -
connectionProvider
-
createTestTableModel
- Returns:
- a EntityTableModel using
testEntities
with an edit model - See Also:
-
createDepartmentTableModel
-
createTableModel
protected abstract TableModel createTableModel(EntityType entityType, EntityConnectionProvider connectionProvider) -
createTableModel
-
createEditModel
protected abstract EditModel createEditModel(EntityType entityType, EntityConnectionProvider connectionProvider)
-