ma.glasnost.orika.test.perf
Class MultiLayeredClassloader_IDEOnly

java.lang.Object
  extended by ma.glasnost.orika.test.perf.MultiLayeredClassloader_IDEOnly

public class MultiLayeredClassloader_IDEOnly
extends Object

Author:
matt.deboer@gmail.com Note: this test is named '_IDEOnly' to allow it to be skipped during maven tests, as it has achieved inconsistent results using that method. Until a better solution can be found, we relegate it to running only within the IDE.

Constructor Summary
MultiLayeredClassloader_IDEOnly()
           
 
Method Summary
static ClassLoader copyThreadContextClassLoader()
           
static File createTempDirectory()
          Creates a new temporary directory
 void nestedClassLoader()
          Test that Orika can be run from a nested class-loader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiLayeredClassloader_IDEOnly

public MultiLayeredClassloader_IDEOnly()
Method Detail

copyThreadContextClassLoader

public static ClassLoader copyThreadContextClassLoader()
Returns:
a copy of the current thread context class-loader

createTempDirectory

public static File createTempDirectory()
                                throws IOException
Creates a new temporary directory

Returns:
Throws:
IOException

nestedClassLoader

public void nestedClassLoader()
                       throws Exception
Test that Orika can be run from a nested class-loader

Throws:
Exception


Copyright © 2014 Glasnost. All Rights Reserved.