Class RuntimeTester


  • public final class RuntimeTester
    extends java.lang.Object
    This is a tester to do some runtime checking like memory checks and other stuff.
    Since:
    1.1.1 (09.05.2011)
    Author:
    oliver
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertFreeMemory​(int required)
      If you need a certain amount of free memory you can assert it with this method here.
      static void assertMaxMemory​(int required)
      If you have some tests which needs a certain amount of memory this test is for you.
      • Methods inherited from class java.lang.Object

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

      • assertMaxMemory

        public static void assertMaxMemory​(int required)
        If you have some tests which needs a certain amount of memory this test is for you. This tests guarantees you that the VM is started with enough memory (usually option "-Xmx").
        Parameters:
        required - the max memory in MB
      • assertFreeMemory

        public static void assertFreeMemory​(int required)
        If you need a certain amount of free memory you can assert it with this method here.
        Parameters:
        required - the required free memory in MB