patterntesting.runtime.junit
Class RuntimeTester

Package class diagram package RuntimeTester
java.lang.Object
  extended by patterntesting.runtime.junit.RuntimeTester

public final class RuntimeTester
extends 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
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


Copyright © 2002–2014 PatternTesting Team. All rights reserved.