Model
- the EntityModel
typeEditModel
- the EntityEditModel
typeTableModel
- the EntityTableModel
typepublic abstract class AbstractEntityModelTest<Model extends DefaultEntityModel<Model,EditModel,TableModel>,EditModel extends AbstractEntityEditModel,TableModel extends EntityTableModel<EditModel>> extends Object
EntityModel
subclasses.Modifier and Type | Field and Description |
---|---|
protected static EntityConnectionProvider |
CONNECTION_PROVIDER |
protected Model |
departmentModel |
Modifier | Constructor and Description |
---|---|
protected |
AbstractEntityModelTest() |
Modifier and Type | Method and Description |
---|---|
void |
activateDeactivateDetailModel() |
void |
addModelAsItsOwnDetailModel() |
void |
addSameDetailModelTwice() |
void |
clear() |
void |
clearEditModelClearTableSelection() |
void |
clearForeignKeyOnEmptySelection() |
protected EntityConnectionProvider |
connectionProvider() |
void |
constructorNullTableModel() |
protected abstract EditModel |
createDepartmentEditModel() |
protected abstract Model |
createDepartmentModel() |
protected abstract Model |
createDepartmentModelWithoutDetailModel() |
protected abstract TableModel |
createDepartmentTableModel() |
protected abstract Model |
createEmployeeModel() |
protected abstract TableModel |
createEmployeeTableModel() |
void |
detailModel() |
void |
detailModelNotFound() |
void |
insertDifferentTypes() |
void |
refreshOnSelection() |
void |
searchByInsertedEntity() |
void |
test() |
void |
testDetailModels() |
void |
testUpdatePrimaryKey() |
protected static final EntityConnectionProvider CONNECTION_PROVIDER
protected final Model extends DefaultEntityModel<Model,EditModel,TableModel> departmentModel
@Test public void testUpdatePrimaryKey() throws DatabaseException, ValidationException
DatabaseException
ValidationException
@Test public void testDetailModels() throws DatabaseException, ValidationException
DatabaseException
ValidationException
@Test public void detailModelNotFound()
@Test public void clear()
@Test public void constructorNullTableModel()
@Test public void clearEditModelClearTableSelection()
@Test public void addSameDetailModelTwice()
@Test public void addModelAsItsOwnDetailModel()
@Test public void activateDeactivateDetailModel()
@Test public void searchByInsertedEntity() throws DatabaseException, ValidationException
DatabaseException
ValidationException
@Test public void clearForeignKeyOnEmptySelection() throws DatabaseException
DatabaseException
@Test public void refreshOnSelection() throws DatabaseException
DatabaseException
@Test public void insertDifferentTypes() throws DatabaseException, ValidationException
DatabaseException
ValidationException
protected final EntityConnectionProvider connectionProvider()
protected abstract Model createDepartmentModel()
TestDomain.Department.TYPE
protected abstract Model createDepartmentModelWithoutDetailModel()
TestDomain.Department.TYPE
protected abstract EditModel createDepartmentEditModel()
TestDomain.Department.TYPE
protected abstract TableModel createEmployeeTableModel()
TestDomain.Employee.TYPE
protected abstract TableModel createDepartmentTableModel()
TestDomain.Department.TYPE
protected abstract Model createEmployeeModel()
TestDomain.Employee.TYPE