org.kite9.framework.common
Class ResourceHelper

java.lang.Object
  extended by org.kite9.framework.common.ResourceHelper

public class ResourceHelper
extends Object

Commonly you will want to keep test data along with the test java classes in the same directory, since this will make the tests portable accross testing environments. This class contains some common methods to help with this co-location.

Author:
robmoffat

Constructor Summary
ResourceHelper()
           
 
Method Summary
static String getFullFileName(Class<?> testClass, String name)
           
static File getHandleToFileInClasspath(Class<?> testClass, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceHelper

public ResourceHelper()
Method Detail

getHandleToFileInClasspath

public static File getHandleToFileInClasspath(Class<?> testClass,
                                              String name)

getFullFileName

public static String getFullFileName(Class<?> testClass,
                                     String name)


Copyright © 2011. All Rights Reserved.