polyglot.pth
Class OutputController

java.lang.Object
  extended by polyglot.pth.OutputController
Direct Known Subclasses:
SilentOutputController, StdOutputController, VerboseOutputController

public abstract class OutputController
extends java.lang.Object


Field Summary
protected  java.io.PrintStream out
           
protected  java.util.Calendar today
           
protected  java.util.Calendar week
           
 
Constructor Summary
OutputController(java.io.PrintStream out)
           
 
Method Summary
abstract  void displayTestResults(TestResult tr, java.lang.String testName)
           
abstract  void displayTestSuiteResults(java.lang.String suiteName, TestSuite ts)
           
protected abstract  void finishScriptTestSuite(ScriptTestSuite sts)
           
protected abstract  void finishSourceFileTest(SourceFileTest sft, ErrorQueue eq)
           
 void finishTest(Test t, ErrorQueue eq)
           
 java.lang.String getDateDisplay(java.util.Date d)
           
protected  java.text.DateFormat getDefaultDateFormat()
           
protected  java.text.DateFormat getSameWeekDateFormat()
           
protected  java.text.DateFormat getSameYearDateFormat()
           
protected  java.text.DateFormat getTodayDateFormat()
           
protected abstract  void startScriptTestSuite(ScriptTestSuite sts)
           
protected abstract  void startSourceFileTest(SourceFileTest sft)
           
 void startTest(Test t)
           
abstract  void warning(java.lang.String w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected final java.io.PrintStream out

today

protected final java.util.Calendar today

week

protected final java.util.Calendar week
Constructor Detail

OutputController

public OutputController(java.io.PrintStream out)
Method Detail

startTest

public void startTest(Test t)

finishTest

public void finishTest(Test t,
                       ErrorQueue eq)

startScriptTestSuite

protected abstract void startScriptTestSuite(ScriptTestSuite sts)

startSourceFileTest

protected abstract void startSourceFileTest(SourceFileTest sft)

finishScriptTestSuite

protected abstract void finishScriptTestSuite(ScriptTestSuite sts)

finishSourceFileTest

protected abstract void finishSourceFileTest(SourceFileTest sft,
                                             ErrorQueue eq)

displayTestSuiteResults

public abstract void displayTestSuiteResults(java.lang.String suiteName,
                                             TestSuite ts)

displayTestResults

public abstract void displayTestResults(TestResult tr,
                                        java.lang.String testName)

getDefaultDateFormat

protected java.text.DateFormat getDefaultDateFormat()

getSameYearDateFormat

protected java.text.DateFormat getSameYearDateFormat()

getSameWeekDateFormat

protected java.text.DateFormat getSameWeekDateFormat()

getTodayDateFormat

protected java.text.DateFormat getTodayDateFormat()

getDateDisplay

public java.lang.String getDateDisplay(java.util.Date d)

warning

public abstract void warning(java.lang.String w)