Package react4j
Class ReactTestUtil
java.lang.Object
react4j.ReactTestUtil
Utility class for interacting with React4j in tests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidSet the `react4j.check_invariants` setting totrue.static voidSet the `react4j.enable_view_names` setting tofalse.static voidSet the `react4j.enable_view_names` setting totrue.static voidSet the `react4j.minimize_input_keys` setting totrue.static voidSet the `react4j.check_invariants` setting tofalse.static voidSet the `react4j.minimize_input_keys` setting tofalse.static voidSet the `react4j.store_debug_data_as_state` setting tofalse.static voidSet the `react4j.validate_input_values` setting tofalse.static voidresetConfig(boolean productionMode) Reset the state of React config to either production or development state.static voidsetViewEnableNames(boolean setting) Configure the `react4j.enable_view_names` setting.static voidSet the `react4j.store_debug_data_as_state` setting totrue.static voidSet the `react4j.validate_input_values` setting totrue.
-
Method Details
-
resetConfig
Reset the state of React config to either production or development state.- Parameters:
productionMode- true to set it to production mode configuration, false to set it to development mode config.
-
enableViewNames
Set the `react4j.enable_view_names` setting totrue. -
disableViewNames
Set the `react4j.enable_view_names` setting tofalse. -
setViewEnableNames
Configure the `react4j.enable_view_names` setting.- Parameters:
setting- the setting.
-
minimizeInputKeys
Set the `react4j.minimize_input_keys` setting totrue. -
noMinimizeInputKeys
Set the `react4j.minimize_input_keys` setting tofalse. -
validateInputValues
Set the `react4j.validate_input_values` setting totrue. -
noValidateInputValues
Set the `react4j.validate_input_values` setting tofalse. -
storeDebugDataAsState
Set the `react4j.store_debug_data_as_state` setting totrue. -
noStoreDebugDataAsState
Set the `react4j.store_debug_data_as_state` setting tofalse. -
checkInvariants
Set the `react4j.check_invariants` setting totrue. -
noCheckInvariants
Set the `react4j.check_invariants` setting tofalse.
-