org.kite9.framework.common
Class TestingHelp

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

public class TestingHelp
extends Object

Helps with comparing the results of tests

Author:
robmoffat

Constructor Summary
TestingHelp()
           
 
Method Summary
static String getFullFileName(Class<?> testClass, String name)
           
static File getHandleToFileInClasspath(Class<?> testClass, String name)
           
 String getPositionalInformationADL(Diagram d)
          Produces a report containing all the elements of the diagram
static File prepareFileName(Class<?> theTest, String subtest, String item)
           
static void renderToFile(Class<?> theTest, String subtest, String item, BufferedImage bi)
           
static void writeOutput(Class<?> theTest, String subtest, String item, String contents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestingHelp

public TestingHelp()
Method Detail

prepareFileName

public static File prepareFileName(Class<?> theTest,
                                   String subtest,
                                   String item)

writeOutput

public static void writeOutput(Class<?> theTest,
                               String subtest,
                               String item,
                               String contents)

renderToFile

public static void renderToFile(Class<?> theTest,
                                String subtest,
                                String item,
                                BufferedImage bi)

getPositionalInformationADL

public String getPositionalInformationADL(Diagram d)
Produces a report containing all the elements of the diagram


getHandleToFileInClasspath

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

getFullFileName

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


Copyright © 2011. All Rights Reserved.