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 - the EntityModel type
EditModel - the EntityEditModel type
TableModel - the EntityTableModel type

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 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,TableModel> departmentModel
  • Constructor Details

    • AbstractEntityModelTest

      protected AbstractEntityModelTest()
  • Method Details

    • testUpdatePrimaryKey

      @Test public void testUpdatePrimaryKey() throws is.codion.common.db.exception.DatabaseException, is.codion.framework.domain.entity.exception.ValidationException
      Throws:
      is.codion.common.db.exception.DatabaseException
      is.codion.framework.domain.entity.exception.ValidationException
    • testDetailModels

      @Test public void testDetailModels() throws Exception
      Throws:
      Exception
    • 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() throws Exception
      Throws:
      Exception
    • detailModel

      @Test public void detailModel() throws Exception
      Throws:
      Exception
    • addSameDetailModelTwice

      @Test public void addSameDetailModelTwice()
    • addModelAsItsOwnDetailModel

      @Test public void addModelAsItsOwnDetailModel()
    • activateDeactivateDetailModel

      @Test public void activateDeactivateDetailModel()
    • searchByInsertedEntity

      @Test public void searchByInsertedEntity() throws is.codion.common.db.exception.DatabaseException, is.codion.framework.domain.entity.exception.ValidationException
      Throws:
      is.codion.common.db.exception.DatabaseException
      is.codion.framework.domain.entity.exception.ValidationException
    • clearForeignKeyOnEmptySelection

      @Test public void clearForeignKeyOnEmptySelection() throws is.codion.common.db.exception.DatabaseException
      Throws:
      is.codion.common.db.exception.DatabaseException
    • refreshOnSelection

      @Test public void refreshOnSelection() throws is.codion.common.db.exception.DatabaseException
      Throws:
      is.codion.common.db.exception.DatabaseException
    • insertDifferentTypes

      @Test public void insertDifferentTypes() throws is.codion.common.db.exception.DatabaseException, is.codion.framework.domain.entity.exception.ValidationException
      Throws:
      is.codion.common.db.exception.DatabaseException
      is.codion.framework.domain.entity.exception.ValidationException
    • connectionProvider

      protected final is.codion.framework.db.EntityConnectionProvider connectionProvider()
    • createDepartmentModel

      protected abstract Model createDepartmentModel()
      Returns:
      a EntityModel based on the department entity
      See Also:
    • createDepartmentModelWithoutDetailModel

      protected abstract Model createDepartmentModelWithoutDetailModel()
      Returns:
      a EntityModel based on the department entity, without detail models
      See Also:
    • createEmployeeModel

      protected abstract Model createEmployeeModel()
      Returns:
      a EntityModel based on the employee entity
      See Also: