net.sourceforge.groboutils.pmti.v1.autodoc.v1.server
Class AbstractNewFileServer

java.lang.Object
  extended bynet.sourceforge.groboutils.autodoc.v1.testserver.AbstractWriterServer
      extended bynet.sourceforge.groboutils.pmti.v1.autodoc.v1.server.AbstractNewFileServer
All Implemented Interfaces:
Server
Direct Known Subclasses:
XMLFileServer

public abstract class AbstractNewFileServer
extends AbstractWriterServer

An interface which corresponds to a part of the framework that knows how to deal with the framework's TestData. It may directly deal with the data, or pass it off to a remote server.

Since:
March 17, 2002
Version:
$Date: 2003/02/10 22:51:56 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Constructor Summary
AbstractNewFileServer(java.lang.String prefix, java.lang.String postfix)
          Creates a new file for every BugTestResult, in the format prefix + BugTestResult.getSuiteName() + '-' + BugTestResuilt.getTestMethodName() + '-' + Long.toString( System.currentTimeMillis() ) + postfix.
AbstractNewFileServer(java.lang.String prefix, java.lang.String postfix, boolean useTimestamp)
          Creates a new file for every BugTestResult, in the format prefix + BugTestResult.getSuiteName() + '-' + BugTestResuilt.getTestMethodName() + '-' + Long.toString( System.currentTimeMillis() ) + postfix.
 
Method Summary
protected  java.lang.String createFileName(TestData td)
           
protected  java.io.Writer openOutput(TestData td)
          Open a writer stream.
 
Methods inherited from class net.sourceforge.groboutils.autodoc.v1.testserver.AbstractWriterServer
addTestData, closeOutput, writeTestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNewFileServer

public AbstractNewFileServer(java.lang.String prefix,
                             java.lang.String postfix)
Creates a new file for every BugTestResult, in the format prefix + BugTestResult.getSuiteName() + '-' + BugTestResuilt.getTestMethodName() + '-' + Long.toString( System.currentTimeMillis() ) + postfix. prefix should include the directory.


AbstractNewFileServer

public AbstractNewFileServer(java.lang.String prefix,
                             java.lang.String postfix,
                             boolean useTimestamp)
Creates a new file for every BugTestResult, in the format prefix + BugTestResult.getSuiteName() + '-' + BugTestResuilt.getTestMethodName() + '-' + Long.toString( System.currentTimeMillis() ) + postfix. prefix should include the directory.

Method Detail

openOutput

protected java.io.Writer openOutput(TestData td)
                             throws java.io.IOException
Open a writer stream. This will be done once per result, so log-like actions may need to append to the previous results.

Specified by:
openOutput in class AbstractWriterServer
Throws:
java.io.IOException

createFileName

protected java.lang.String createFileName(TestData td)


Copyright © 2001-2003 by The GroboUtils Project