temmental
Class TemplateRecorder

java.lang.Object
  extended by temmental.TemplateRecorder

public class TemplateRecorder
extends java.lang.Object

Recorder for template calls (test case).


Method Summary
static void clear()
          Clear the cache of all calls.
static java.util.Set<java.lang.String> getTemplateMessagesFilepaths()
          Returns the messages corresponding to the given template
static java.util.Set<java.lang.String> getTemplateRecordFilepaths()
           
static TemplateRecord getTemplateRecordFor(java.lang.String filepath)
          Returns the record corresponding to the given template
static boolean isRecording()
          Indicates if the calls are recorded
static void setRecording(boolean status)
          Start or Stop recording
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRecording

public static void setRecording(boolean status)
Start or Stop recording

Parameters:
status - recording status. true to start recording, false to stop recording.

clear

public static void clear()
Clear the cache of all calls.


isRecording

public static boolean isRecording()
Indicates if the calls are recorded

Returns:
true if calls are recorded, false otherwise.

getTemplateRecordFor

public static TemplateRecord getTemplateRecordFor(java.lang.String filepath)
Returns the record corresponding to the given template

Parameters:
filepath - the path to the template file
Returns:
the record or null if the template has not been created.

getTemplateMessagesFilepaths

public static java.util.Set<java.lang.String> getTemplateMessagesFilepaths()
Returns the messages corresponding to the given template

Returns:
the messages or null if the template has not been created.

getTemplateRecordFilepaths

public static java.util.Set<java.lang.String> getTemplateRecordFilepaths()