Class EntityEditPanelTestUnit

java.lang.Object
is.codion.swing.framework.ui.test.EntityEditPanelTestUnit

public class EntityEditPanelTestUnit extends Object
A base class for testing a EntityEditPanel
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    EntityEditPanelTestUnit(is.codion.swing.framework.model.SwingEntityEditModel editModel, Class<? extends is.codion.swing.framework.ui.EntityEditPanel> editPanelClass)
    Instantiates a new edit panel test unit for the given edit panel class
  • Method Summary

    Modifier and Type
    Method
    Description
    protected is.codion.swing.framework.ui.EntityEditPanel
    Creates the edit panel for testing
    protected is.codion.swing.framework.model.SwingEntityEditModel
     
    protected final void
    Initializes the edit panel.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EntityEditPanelTestUnit

      protected EntityEditPanelTestUnit(is.codion.swing.framework.model.SwingEntityEditModel editModel, Class<? extends is.codion.swing.framework.ui.EntityEditPanel> editPanelClass)
      Instantiates a new edit panel test unit for the given edit panel class
      Parameters:
      editModel - the edit model
      editPanelClass - the edit panel class
  • Method Details

    • testInitialize

      protected final void testInitialize() throws Exception
      Initializes the edit panel.
      Throws:
      Exception - in case of an exception
    • createEditPanel

      protected is.codion.swing.framework.ui.EntityEditPanel createEditPanel() throws Exception
      Creates the edit panel for testing
      Returns:
      the edit panel to test
      Throws:
      Exception - in case of an exception
    • editModel

      protected is.codion.swing.framework.model.SwingEntityEditModel editModel()
      Returns:
      the edit model