Class RuntimeUtils


  • @API(status=INTERNAL,
         since="1.6")
    public final class RuntimeUtils
    extends java.lang.Object
    Collection of utilities for working with Runtime, RuntimeMXBean, etc.

    DISCLAIMER

    These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!

    Since:
    1.6
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RuntimeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.util.Optional<java.util.List<java.lang.String>> getInputArguments()
      Try to get the input arguments the VM was started with.
      static boolean isDebugMode()
      Try to determine whether the VM was started in debug mode or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RuntimeUtils

        private RuntimeUtils()
    • Method Detail

      • isDebugMode

        public static boolean isDebugMode()
        Try to determine whether the VM was started in debug mode or not.
      • getInputArguments

        static java.util.Optional<java.util.List<java.lang.String>> getInputArguments()
        Try to get the input arguments the VM was started with.