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 Details

    • EntityEditPanelTestUnit

      protected EntityEditPanelTestUnit(SwingEntityEditModel editModel, Class<? extends 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 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 SwingEntityEditModel editModel()
      Returns:
      the edit model