@GwtIncompatible
public final class ReactTestUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
checkInvariants()
Set the `react4j.check_invariants` setting to
true . |
static void |
disableComponentNames()
Set the `react4j.enable_component_names` setting to
false . |
static void |
enableComponentNames()
Set the `react4j.enable_component_names` setting to
true . |
static void |
freezeProps()
Set the `react4j.freeze_props` setting to
true . |
static void |
minimizePropKeys()
Set the `react4j.minimize_prop_keys` setting to
true . |
static void |
noCheckInvariants()
Set the `react4j.check_invariants` setting to
false . |
static void |
noFreezeProps()
Set the `react4j.freeze_props` setting to
false . |
static void |
noMinimizePropKeys()
Set the `react4j.minimize_prop_keys` setting to
false . |
static void |
noStoreDebugDataAsState()
Set the `react4j.store_debug_data_as_state` setting to
false . |
static void |
noValidatePropValues()
Set the `react4j.validate_prop_values` setting to
false . |
static void |
resetConfig(boolean productionMode)
Reset the state of React config to either production or development state.
|
static void |
setComponentEnableNames(boolean setting)
Configure the `react4j.enable_component_names` setting.
|
static void |
storeDebugDataAsState()
Set the `react4j.store_debug_data_as_state` setting to
true . |
static void |
validatePropValues()
Set the `react4j.validate_prop_values` setting to
true . |
public static void resetConfig(boolean productionMode)
productionMode
- true to set it to production mode configuration, false to set it to development mode config.public static void enableComponentNames()
true
.public static void disableComponentNames()
false
.public static void setComponentEnableNames(boolean setting)
setting
- the setting.public static void minimizePropKeys()
true
.public static void noMinimizePropKeys()
false
.public static void validatePropValues()
true
.public static void noValidatePropValues()
false
.public static void storeDebugDataAsState()
true
.public static void noStoreDebugDataAsState()
false
.public static void freezeProps()
true
.public static void noFreezeProps()
false
.public static void checkInvariants()
true
.public static void noCheckInvariants()
false
.