Package react4j
Class ReactTestUtil
java.lang.Object
react4j.ReactTestUtil
Utility class for interacting with React4j in tests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Set the `react4j.check_invariants` setting totrue
.static void
Set the `react4j.enable_view_names` setting tofalse
.static void
Set the `react4j.enable_view_names` setting totrue
.static void
Set the `react4j.minimize_input_keys` setting totrue
.static void
Set the `react4j.check_invariants` setting tofalse
.static void
Set the `react4j.minimize_input_keys` setting tofalse
.static void
Set the `react4j.store_debug_data_as_state` setting tofalse
.static void
Set the `react4j.validate_input_values` setting tofalse
.static void
resetConfig
(boolean productionMode) Reset the state of React config to either production or development state.static void
setViewEnableNames
(boolean setting) Configure the `react4j.enable_view_names` setting.static void
Set the `react4j.store_debug_data_as_state` setting totrue
.static void
Set 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
.
-