Class EntityEditPanelTestUnit
java.lang.Object
is.codion.swing.framework.ui.test.EntityEditPanelTestUnit
A base class for testing a
EntityEditPanel-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityEditPanelTestUnit(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 TypeMethodDescriptionprotected is.codion.swing.framework.ui.EntityEditPanelCreates the edit panel for testingprotected is.codion.swing.framework.model.SwingEntityEditModelprotected final voidInitializes the edit panel.
-
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 modeleditPanelClass- the edit panel class
-
-
Method Details
-
testInitialize
Initializes the edit panel.- Throws:
Exception- in case of an exception
-
createEditPanel
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
-