public class TestFormController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestFormController.FormBeanTestImpl
A test form bean class.
|
| Constructor and Description |
|---|
TestFormController() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testActionPerformedCancel()
Tests the handling of the action event for the cancel button.
|
void |
testActionPerformedNoComponentName()
Tests processing of an action event that does not have a component name.
|
void |
testActionPerformedOkInvalid()
Tests the handling of the action event for the OK button when the form's
input fields contain invalid data.
|
void |
testActionPerformedOkValid()
Tests the handling of the action event for the OK button when the form's
input fields contain valid data.
|
void |
testActionPerformedUnknownButton()
Tests the actionPerformed() method when an unknown event is received.
|
void |
testAddFieldStatusListener()
Tests whether listeners for field status events can be added.
|
void |
testAddFieldStatusListenerNull()
Tries to add a null field status listener.
|
void |
testAddFormListenerNull()
Tries to add a null form listener.
|
void |
testAddValidationListener()
Tests whether validation listeners can be added and are called correctly.
|
void |
testAddValidationListenerNull()
Tries to add a null validation listener.
|
void |
testCreateFormControllerEventNoController()
Tries to create a form controller event without a controller reference.
|
void |
testCreateFormControllerFieldStatusEventNoField()
Tries to create a field status event without a field name.
|
void |
testCreateFormControllerValidationEventNoResults()
Tries to create a validation event without results.
|
void |
testFetchMessageOutputBuilderData()
Tests obtaining the message output object from the builder data.
|
void |
testFetchMessageOutputExplicit()
Tests obtaining the message output object when one was explicitly set.
|
void |
testFetchValidationMessageBoxCaptionDefault()
Tests obtaining the caption for the validation message box when no
caption was set explicitly.
|
void |
testFetchValidationMessageFormatDefault()
Tests obtaining the validation message format object when no specific
object was set.
|
void |
testFetchValidationMessageFormatExplicit()
Tests obtaining the validation message format object when it was
explicitly set.
|
void |
testFireFormEventCommitted()
Tests the form event fired for a committed form.
|
void |
testFireFormEventNotCommitted()
Tests the form event fired for a non-committed form.
|
void |
testGetBuilderData()
Tests whether the BuilderData object can be obtained.
|
void |
testGetForm()
Tests querying the form from the controller.
|
void |
testGetFormBean()
Tests querying the form bean.
|
void |
testGetFormListeners()
Tests whether the registered form listeners can be queried.
|
void |
testGetLastValidationResults()
Tests whether the results of the last validation are recorded and can be
queried later.
|
void |
testGetLastValidationResultsNoValidation()
Tests the results returned by getLastValidationResults() if no validation
has been performed so far.
|
void |
testInit()
Tests a newly created controller.
|
void |
testInitialValidation()
Tests the initial validation that happens when the form is opened.
|
void |
testIsFieldVisited()
Tests whether visited fields are correctly tracked.
|
void |
testListenerRegistrationViaReflection()
Tests whether event listeners can be registered at a controller using the
reflection-based mechanism supported by FormEventManager.
|
void |
testRemoveFieldStatusListener()
Tests whether field status listeners can be removed.
|
void |
testRemoveFormListener()
Tests whether a form listener can be removed.
|
void |
testRemoveValidationListener()
Tests whether validation listeners can be removed.
|
void |
testSetFormValidatorExistingForm()
Tests whether a
FormValidator can be set if the form already
exists. |
void |
testValidateWithErrorMessageDisplay()
Tests the validation method that displays error messages in case of
validation failures.
|
void |
testValidationInvalidNotVisited()
Tests a validation if the field is invalid, but has not yet been
visited.
|
void |
testValidationLastStatus()
Tests whether the last known validation status is stored.
|
void |
testValidationNoModel()
Tests validation if no model object exists.
|
void |
testValidationValid()
Tests a valid validation.
|
void |
testWindowClosedCancelCommand()
Tests whether the cancel command is executed when the form is not
committed.
|
void |
testWindowClosedFormListenerCommitted()
Tests whether form listeners are called when the window is closed and the
form was committed.
|
void |
testWindowClosedFormListenerNotCommitted()
Tests whether form listeners are called when the window is closed and the
form was not committed.
|
void |
testWindowClosedOKCommand()
Tests whether the OK command is executed when the form is committed.
|
void |
testWindowEvents()
Tests the dummy implementations of the other window events.
|
void |
testWindowOpenedFocusListener()
Tests whether the controller registers itself as focus listener.
|
void |
testWindowOpenedFormValidator()
Tests whether the
FormValidator is set when the window is opened. |
void |
testWindowOpenedInitFormFields()
Tests whether the form's fields are initialized in the setup phase.
|
void |
testWindowOpenedNoCompBuilderData()
Tests the windowOpened() method when no component builder data is set.
|
void |
testWindowOpenedNoWindow()
Tests the windowOpened() method when no window object is specified.
|
void |
testWindowOpenedNoWindowBuilderData()
Tests the windowOpened() method when no window builder data is set.
|
void |
testWindowOpenedRegisterBtnCancel()
Tests whether an action listener for the cancel button is registered.
|
void |
testWindowOpenedRegisterBtnOk()
Tests whether an action listener for the OK button is registered.
|
void |
testWindowOpenedValidationTrigger()
Tests whether the validation trigger is called in the setup phase.
|
public void testInit()
public void testGetForm()
public void testGetFormBean()
public void testWindowOpenedNoCompBuilderData()
public void testWindowOpenedNoWindowBuilderData()
public void testWindowOpenedNoWindow()
public void testWindowOpenedRegisterBtnOk()
public void testWindowOpenedRegisterBtnCancel()
public void testWindowOpenedFocusListener()
public void testWindowOpenedValidationTrigger()
public void testWindowOpenedInitFormFields()
public void testWindowOpenedFormValidator()
FormValidator is set when the window is opened.public void testSetFormValidatorExistingForm()
FormValidator can be set if the form already
exists.public void testWindowEvents()
public void testIsFieldVisited()
public void testInitialValidation()
public void testValidationInvalidNotVisited()
public void testValidationLastStatus()
public void testValidationValid()
public void testGetLastValidationResults()
public void testGetLastValidationResultsNoValidation()
public void testValidationNoModel()
public void testGetBuilderData()
public void testFetchMessageOutputExplicit()
public void testFetchMessageOutputBuilderData()
public void testFetchValidationMessageFormatExplicit()
public void testFetchValidationMessageFormatDefault()
public void testFetchValidationMessageBoxCaptionDefault()
public void testActionPerformedCancel()
public void testActionPerformedOkValid()
public void testActionPerformedOkInvalid()
public void testValidateWithErrorMessageDisplay()
public void testActionPerformedUnknownButton()
public void testActionPerformedNoComponentName()
public void testWindowClosedOKCommand()
public void testWindowClosedCancelCommand()
public void testCreateFormControllerEventNoController()
public void testCreateFormControllerValidationEventNoResults()
public void testAddValidationListener()
public void testAddValidationListenerNull()
public void testRemoveValidationListener()
public void testCreateFormControllerFieldStatusEventNoField()
public void testAddFieldStatusListener()
public void testAddFieldStatusListenerNull()
public void testRemoveFieldStatusListener()
public void testAddFormListenerNull()
public void testRemoveFormListener()
public void testGetFormListeners()
public void testFireFormEventNotCommitted()
public void testFireFormEventCommitted()
public void testWindowClosedFormListenerNotCommitted()
public void testWindowClosedFormListenerCommitted()
public void testListenerRegistrationViaReflection()
Copyright © 2016 The JGUIraffe Team. All rights reserved.