Package is.codion.framework.model.test
Class AbstractEntityModelTest<M extends EntityModel<M,E,T,R>,E extends EntityEditModel<M,E,T,R>,T extends EntityTableModel<M,E,T,R>,R extends EntityEditor<M,E,T,R>>
java.lang.Object
is.codion.framework.model.test.AbstractEntityModelTest<M,E,T,R>
- Type Parameters:
M- theEntityModeltypeE- theEntityEditModeltypeT- theEntityTableModeltypeR- theEntityEditortype
public abstract class AbstractEntityModelTest<M extends EntityModel<M,E,T,R>,E extends EntityEditModel<M,E,T,R>,T extends EntityTableModel<M,E,T,R>,R extends EntityEditor<M,E,T,R>>
extends Object
A base class for testing
EntityModel subclasses.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONNECTION_PROVIDER
-
-
Constructor Details
-
AbstractEntityModelTest
public AbstractEntityModelTest()
-
-
Method Details
-
testUpdatePrimaryKey
- Throws:
EntityValidationException
-
testDetailModels
- Throws:
EntityValidationException
-
detailModelNotFound
@Test public void detailModelNotFound() -
clear
@Test public void clear() -
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() -
initializeActiveDetailModel
@Test public void initializeActiveDetailModel() -
setConditionOnInsert
- Throws:
EntityValidationException
-
setValueOnInsert
- Throws:
EntityValidationException
-
insertDifferentTypes
- Throws:
EntityValidationException
-
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:
-