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
- Throws:
DatabaseException
ValidationException
-
testDetailModels
- Throws:
Exception
-
detailModelNotFound
@Test public void detailModelNotFound() -
clear
@Test public void clear() -
constructorNullTableModel
@Test public void constructorNullTableModel() -
clearEditModelClearTableSelection
@Test public void clearEditModelClearTableSelection() -
test
- Throws:
Exception
-
detailModel
- Throws:
Exception
-
addSameDetailModelTwice
@Test public void addSameDetailModelTwice() -
addModelAsItsOwnDetailModel
@Test public void addModelAsItsOwnDetailModel() -
activateDeactivateDetailModel
@Test public void activateDeactivateDetailModel() -
foreignKeyDetailModelLink
- Throws:
ValidationException
DatabaseException
-
searchByInsertedEntity
- Throws:
DatabaseException
ValidationException
-
clearForeignKeyOnEmptySelection
- Throws:
DatabaseException
-
refreshOnSelection
- Throws:
DatabaseException
-
insertDifferentTypes
- Throws:
DatabaseException
ValidationException
-
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:
-