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 - the EntityModel type
E - the EntityEditModel type
T - the EntityTableModel type
R - the EntityEditor type

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 Details

  • Constructor Details

    • AbstractEntityModelTest

      public AbstractEntityModelTest()
  • Method Details

    • testUpdatePrimaryKey

      @Test public void testUpdatePrimaryKey() throws EntityValidationException
      Throws:
      EntityValidationException
    • testDetailModels

      @Test public void testDetailModels() throws EntityValidationException
      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

      @Test public void setConditionOnInsert() throws EntityValidationException
      Throws:
      EntityValidationException
    • setValueOnInsert

      @Test public void setValueOnInsert() throws EntityValidationException
      Throws:
      EntityValidationException
    • insertDifferentTypes

      @Test public void insertDifferentTypes() throws EntityValidationException
      Throws:
      EntityValidationException
    • connectionProvider

      protected final EntityConnectionProvider connectionProvider()
    • createDepartmentModel

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

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

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