Package is.codion.framework.model.test
Class AbstractEntityModelTest<Model extends is.codion.framework.model.DefaultEntityModel<Model,EditModel,TableModel>,EditModel extends is.codion.framework.model.AbstractEntityEditModel,TableModel extends is.codion.framework.model.EntityTableModel<EditModel>>
java.lang.Object
is.codion.framework.model.test.AbstractEntityModelTest<Model,EditModel,TableModel>
- Type Parameters:
Model- theEntityModeltypeEditModel- theEntityEditModeltypeTableModel- theEntityTableModeltype
public abstract class AbstractEntityModelTest<Model extends is.codion.framework.model.DefaultEntityModel<Model,EditModel,TableModel>,EditModel extends is.codion.framework.model.AbstractEntityEditModel,TableModel extends is.codion.framework.model.EntityTableModel<EditModel>>
extends Object
A base class for testing
EntityModel subclasses.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final is.codion.framework.db.EntityConnectionProviderprotected final Model -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONNECTION_PROVIDER
protected static final is.codion.framework.db.EntityConnectionProvider CONNECTION_PROVIDER -
departmentModel
protected final Model extends is.codion.framework.model.DefaultEntityModel<Model,EditModel, departmentModelTableModel>
-
-
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
protected final is.codion.framework.db.EntityConnectionProvider 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:
-