com.thoughtworks.qdox.junit
Class APITestCase
TestCase
com.thoughtworks.qdox.junit.APITestCase
public abstract class APITestCase
extends TestCase
APITestCase is a JUnit extension that will let you compare two sources
(typically one kept as a static expected result and a generated one) on the API level.
This class has been ported from XJavaDoc's CodeTestCase, carrying over only the
parts that compare on the API level. The original CodeTestCase also has comparison
of Java source AST (Abstract Syntax Trees). This will probably be extracted into
a ASTTestCase class and hosted as a separate project somewhere else. It should
probably be based on JavaCC for ease of porting.
APITestCase
public APITestCase()
assertApiEquals
public static void assertApiEquals(URL expected,
URL actual)
throws IOException
Compares API of both sources in the readers.
Note: This method is for backward naming compatiblity
with xjavadoc.codeunit.CodeTestCase.
expected
- the expected sourceactual
- the actual source
getDir
protected File getDir()
getRootDir
protected File getRootDir()