Package is.codion.framework.model.test
Class AbstractEntityModelTest<Model extends DefaultEntityModel<Model,EditModel,TableModel>,EditModel extends AbstractEntityEditModel,TableModel extends EntityTableModel<EditModel>>
java.lang.Object
is.codion.framework.model.test.AbstractEntityModelTest<Model,EditModel,TableModel>
- Type Parameters:
Model
- theEntityModel
typeEditModel
- theEntityEditModel
typeTableModel
- theEntityTableModel
type
public abstract class AbstractEntityModelTest<Model extends DefaultEntityModel<Model,EditModel,TableModel>,EditModel extends AbstractEntityEditModel,TableModel extends EntityTableModel<EditModel>>
extends Object
A base class for testing
EntityModel
subclasses.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final EntityConnectionProvider
protected final Model
-
Constructor Summary
-
Method Summary
-
Field Details
-
CONNECTION_PROVIDER
-
departmentModel
-
-
Constructor Details
-
AbstractEntityModelTest
protected AbstractEntityModelTest()
-
-
Method Details
-
testUpdatePrimaryKey
@Test public void testUpdatePrimaryKey() -
testDetailModels
@Test public void testDetailModels() -
detailModelNotFound
@Test public void detailModelNotFound() -
clear
@Test public void clear() -
constructorNullTableModel
@Test public void constructorNullTableModel() -
clearEditModelClearTableSelection
@Test public void clearEditModelClearTableSelection() -
test
@Test public void test() -
detailModel
@Test public void detailModel() -
addSameDetailModelTwice
@Test public void addSameDetailModelTwice() -
addModelAsItsOwnDetailModel
@Test public void addModelAsItsOwnDetailModel() -
activateDeactivateDetailModel
@Test public void activateDeactivateDetailModel() -
foreignKeyDetailModelLink
@Test public void foreignKeyDetailModelLink() -
searchByInsertedEntity
@Test public void searchByInsertedEntity() -
clearForeignKeyOnEmptySelection
@Test public void clearForeignKeyOnEmptySelection() -
refreshOnSelection
@Test public void refreshOnSelection() -
insertDifferentTypes
@Test public void insertDifferentTypes() -
connectionProvider
-
createDepartmentModel
- Returns:
- a EntityModel based on the department entity
- See Also:
-
createDepartmentModelWithoutDetailModel
- Returns:
- a EntityModel based on the department entity, without detail models
- See Also:
-
createEmployeeModel
- Returns:
- a EntityModel based on the employee entity
- See Also:
-