Package react4j

Class ReactTestUtil

java.lang.Object
react4j.ReactTestUtil

@GwtIncompatible public final class ReactTestUtil extends Object
Utility class for interacting with React4j in tests.
  • Method Details

    • resetConfig

      public static void resetConfig(boolean productionMode)
      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

      public static void enableViewNames()
      Set the `react4j.enable_view_names` setting to true.
    • disableViewNames

      public static void disableViewNames()
      Set the `react4j.enable_view_names` setting to false.
    • setViewEnableNames

      public static void setViewEnableNames(boolean setting)
      Configure the `react4j.enable_view_names` setting.
      Parameters:
      setting - the setting.
    • minimizeInputKeys

      public static void minimizeInputKeys()
      Set the `react4j.minimize_input_keys` setting to true.
    • noMinimizeInputKeys

      public static void noMinimizeInputKeys()
      Set the `react4j.minimize_input_keys` setting to false.
    • validateInputValues

      public static void validateInputValues()
      Set the `react4j.validate_input_values` setting to true.
    • noValidateInputValues

      public static void noValidateInputValues()
      Set the `react4j.validate_input_values` setting to false.
    • storeDebugDataAsState

      public static void storeDebugDataAsState()
      Set the `react4j.store_debug_data_as_state` setting to true.
    • noStoreDebugDataAsState

      public static void noStoreDebugDataAsState()
      Set the `react4j.store_debug_data_as_state` setting to false.
    • checkInvariants

      public static void checkInvariants()
      Set the `react4j.check_invariants` setting to true.
    • noCheckInvariants

      public static void noCheckInvariants()
      Set the `react4j.check_invariants` setting to false.