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

  • 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 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: