public class TestUtils extends Object
Constructor and Description |
---|
TestUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
forceScarceMemory()
Temporarily exhaust memory, forcing weak/soft references to
be broken.
|
static junit.framework.TestSuite |
makePackageSuite(Class<?> c) |
static junit.framework.TestSuite |
makeSuite(File srcRoot,
File dir) |
static byte[] |
serialize(Object o) |
static void |
testSerialization(Object proc) |
static File |
tmpDir() |
public static void forceScarceMemory()
public static void testSerialization(Object proc) throws Exception
Exception
public static junit.framework.TestSuite makePackageSuite(Class<?> c) throws ClassNotFoundException
ClassNotFoundException
public static junit.framework.TestSuite makeSuite(File srcRoot, File dir) throws ClassNotFoundException
ClassNotFoundException
public static File tmpDir() throws IOException
IOException
Copyright © 2003-2014 Internet Archive. All Rights Reserved.