edu.wpi.ejutr.file_operations
Class EJUTRFileWriter

java.lang.Object
  extended by edu.wpi.ejutr.file_operations.EJUTRFileWriter

public class EJUTRFileWriter
extends java.lang.Object

EJUTRFileWriter is responsible for taking an EBOBActionLogger and generating a JUnit method in an existing Java test case file can be executed utilizing the jUnit plugin.

Author:
Ben Mohlenhoff - bigben@wpi.edu

Constructor Summary
EJUTRFileWriter(org.eclipse.core.resources.IFile file)
          Constructs a new file writer.
 
Method Summary
 void dumpTo(java.lang.String methodName)
          Dumps the contents of the EBOBActionLogger to the file specified when this EJUTRFileWriter was created, and places them into a separate method specified here as a parameter.
 void dumpToNewFile()
          Dumps the contents of the EBOBActionLogger to the file specified when this EJUTRFileWriter was created.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJUTRFileWriter

public EJUTRFileWriter(org.eclipse.core.resources.IFile file)
Constructs a new file writer.

Parameters:
dest - the destination file to write to.
Method Detail

dumpToNewFile

public void dumpToNewFile()
Dumps the contents of the EBOBActionLogger to the file specified when this EJUTRFileWriter was created.


dumpTo

public void dumpTo(java.lang.String methodName)
Dumps the contents of the EBOBActionLogger to the file specified when this EJUTRFileWriter was created, and places them into a separate method specified here as a parameter. The method will be over written if it alreasy exist

Parameters:
methodName - the test method name to create.