Class PageParserTest

  extended by fc.web.page.PageParserTest

public class PageParserTest
extends java.lang.Object

Regression testing since eyeballing parser output just ain't cutting it. For developers only, useful when the molly parser is hacked/changed and we want to ensure that the new parser does not break any existing behavior.

All regression tests are in the

subdirectory (relative to the java source of this class). These tests exist as *.mp files. This program will run the parser on each file and a) either check actual output with expected output and/or b) see if an expected error occurs.

The expected/canonical output (generated by the good working parser) also always exists in the

subdirectory. The actual output generated by the latest hacked parser is output in a temporary directory (the location of which is specified on the command line). The output are then compared and should be identical.

The expected output can be regenerated via the

argument but this should be used by caution. Future/actual output of the changed/hacked parser is compared with the last good generated expected output so the expected output should only be updated when the parser is in a known working state.

Constructor Summary
Method Summary
static void main(java.lang.String[] args)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PageParserTest()
Method Detail


public static void main(java.lang.String[] args)
                 throws java.lang.Exception