com.sun.labs.minion.test.regression.merge
Class MergeTestReplayer.MergeReplayReporter

java.lang.Object
  extended by com.sun.labs.minion.test.regression.merge.MergeTestReplayer.MergeReplayReporter
Enclosing class:
MergeTestReplayer

public class MergeTestReplayer.MergeReplayReporter
extends java.lang.Object

MergeTestReporter is a TestReporter that emits its report to the console. Many of these methods are no-ops.


Constructor Summary
MergeTestReplayer.MergeReplayReporter()
          Creata a new instance of me
 
Method Summary
 void diffException(java.lang.Throwable t)
           
 void endDiff()
          Reports the end of diff
 void endIndexing()
          End indexing.
 void endInverting()
          End inverting
 void endIteration()
          End the iteration.
 void endOptimizing()
          End optimising
 void endReport()
          End the test report.
 void endReportMissingFiles()
          End the report of missing files
 void index(java.lang.String file, boolean success)
          Index a file and indicate its success at being indexed.
 void invertException(java.lang.Exception e)
          Report an exception while inverting
 void missingFile(java.lang.String filename)
          Report a missing file following inversion
 void optimizeException(SearchEngineException e)
          Reports an exception while optimising
 void reportDiff(java.lang.String outputPathname, boolean success)
          Report the output from diff
 void reportTestFiles(java.lang.String[] testFiles)
          Outputs the name of each file.
 void setReportFilename(java.lang.String reportFileName)
          Sets the name of the file onto which the reporter should write its report
 void startDiff()
          Start diff.
 void startIndexing()
          Start indexing.
 void startInverting()
          Start invertng
 void startIteration(int i)
          Start the ith iteration.
 void startOptimizing()
          Start optimising
 void startReport()
          Begin the test report.
 void startReportMissingFiles(int i)
          Report the number of missing files following inversion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeTestReplayer.MergeReplayReporter

public MergeTestReplayer.MergeReplayReporter()
Creata a new instance of me

Method Detail

startReport

public void startReport()
                 throws java.io.IOException
Begin the test report.

Throws:
java.io.IOException

reportTestFiles

public void reportTestFiles(java.lang.String[] testFiles)
                     throws java.io.IOException
Outputs the name of each file.

Parameters:
testFiles - an array of Strings containing the names of the files
Throws:
java.io.IOException

endReport

public void endReport()
               throws java.io.IOException
End the test report.

Throws:
java.io.IOException

startIteration

public void startIteration(int i)
                    throws java.io.IOException
Start the ith iteration.

Parameters:
i - the count of the iteration
Throws:
java.io.IOException

endIteration

public void endIteration()
                  throws java.io.IOException
End the iteration.

Throws:
java.io.IOException

startIndexing

public void startIndexing()
                   throws java.io.IOException
Start indexing.

Throws:
java.io.IOException

index

public void index(java.lang.String file,
                  boolean success)
           throws java.io.IOException
Index a file and indicate its success at being indexed.

Parameters:
file - the name of the file indexed
success - a boolean indicating the success of the index of the file
Throws:
java.io.IOException

endIndexing

public void endIndexing()
                 throws java.io.IOException
End indexing.

Throws:
java.io.IOException

startInverting

public void startInverting()
                    throws java.io.IOException
Start invertng

Throws:
java.io.IOException

endInverting

public void endInverting()
                  throws java.io.IOException
End inverting

Throws:
java.io.IOException

invertException

public void invertException(java.lang.Exception e)
                     throws java.io.IOException
Report an exception while inverting

Parameters:
e - the exception to be reported
Throws:
java.io.IOException

startDiff

public void startDiff()
               throws java.io.IOException
Start diff.

Throws:
java.io.IOException

reportDiff

public void reportDiff(java.lang.String outputPathname,
                       boolean success)
                throws java.io.IOException
Report the output from diff

Parameters:
outputPathname - the name of the file compared
success - the result of the comparison. False if different.
Throws:
java.io.IOException

diffException

public void diffException(java.lang.Throwable t)
                   throws java.io.IOException
Throws:
java.io.IOException

endDiff

public void endDiff()
             throws java.io.IOException
Reports the end of diff

Throws:
java.io.IOException

startOptimizing

public void startOptimizing()
                     throws java.io.IOException
Start optimising

Throws:
java.io.IOException

endOptimizing

public void endOptimizing()
                   throws java.io.IOException
End optimising

Throws:
java.io.IOException

optimizeException

public void optimizeException(SearchEngineException e)
                       throws java.io.IOException
Reports an exception while optimising

Parameters:
e - a SearchEngineException
Throws:
java.io.IOException

setReportFilename

public void setReportFilename(java.lang.String reportFileName)
Sets the name of the file onto which the reporter should write its report

Parameters:
reportFileName - the name of a file

endReportMissingFiles

public void endReportMissingFiles()
                           throws java.io.IOException
End the report of missing files

Throws:
java.io.IOException

missingFile

public void missingFile(java.lang.String filename)
                 throws java.io.IOException
Report a missing file following inversion

Parameters:
filename - the name of the missing file
Throws:
java.io.IOException

startReportMissingFiles

public void startReportMissingFiles(int i)
                             throws java.io.IOException
Report the number of missing files following inversion

Parameters:
i - the number of missing files
Throws:
java.io.IOException