Class CommonTestInjection


  • public class CommonTestInjection
    extends Object
    Allows random faults to be injected in running code during test runs across all solr packages.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • CommonTestInjection

        public CommonTestInjection()
    • Method Detail

      • reset

        public static void reset()
      • setAdditionalProps

        public static void setAdditionalProps​(Map<String,​String> additionalSystemProps)
      • injectAdditionalProps

        public static Map<String,​String> injectAdditionalProps()
      • setDelay

        public static void setDelay​(Integer delay)
        Set test delay (sleep) in unit of millisec
        Parameters:
        delay - delay in millisec, null to remove such delay
      • injectDelay

        public static boolean injectDelay()
        Inject an artificial delay(sleep) into the code
        Returns:
        true