Update of /cvsroot/xdoclet/xjavadoc/src/xjavadoc/codeunit
In directory sc8-pr-cvs1:/tmp/cvs-serv26643/xjavadoc/src/xjavadoc/codeunit
Modified Files:
CodeTestCase.java
Log Message:
o Fixed bug XJD-12
o Improved CodeUnit documentation
o Removed calls to deprecated xjavadoc methods
Index: CodeTestCase.java
===================================================================
RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/codeunit/CodeTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CodeTestCase.java 30 Oct 2002 17:25:55 -0000 1.2
--- CodeTestCase.java 7 Jan 2003 10:00:23 -0000 1.3
***************
*** 14,21 ****
/**
! * CodeTestCase is a JUnit extension that will let you compare two sources on
! * the API level or on the AST level. This is a lot more powerful than comparing
! * on a character by character basis, because it's only "what matters" that is
! * compared.
*
* @author <a href="aslak.hellesoy at bekk.no">Aslak Hellesøy</a>
--- 14,22 ----
/**
! * CodeTestCase is a JUnit extension that will let you compare two sources
! * (typically one we keep as test data and a generated one) on the API level or
! * on the abstract syntax tree (AST) level. This is a lot more powerful than
! * comparing on a character by character basis, because it's only "what matters"
! * that is compared.
*
* @author <a href="aslak.hellesoy at bekk.no">Aslak Hellesøy</a>
***************
*** 31,39 ****
/**
! * Asserts that two ASTs have the same structure. Does not compare the contents
! * (tokens) of the nodes, and is forgiving with respect to those.
*
! * @param expected the expected AST
! * @param actual the actual AST
*/
public static void assertAstEquals( File expected, File actual )
--- 32,40 ----
/**
! * Asserts (tests) that the ASTs of two sources are equal. Does not compare the
! * contents (tokens) of the nodes, and is forgiving with respect to those.
*
! * @param expected the expected source
! * @param actual the actual source
*/
public static void assertAstEquals( File expected, File actual )
***************
*** 46,51 ****
/**
! * This method asserts (tests) that the API of two classes (typically one we
! * keep as test data and a generated one) are equal. It does not go into the
* method bodies to see if the implementation is equal, and is therefore more
* relaxed than assertAstEquals.
--- 47,51 ----
/**
! * Asserts (tests) that the APIs of two sources are equal. Does not go into the
* method bodies to see if the implementation is equal, and is therefore more
* relaxed than assertAstEquals.
***************
*** 71,75 ****
if( !sameNodeType || !sameNumberOfChildren )
{
! // Something is wrong...
StringWriter expectedWriter = new StringWriter();
--- 71,75 ----
if( !sameNodeType || !sameNumberOfChildren )
{
! // Something is not equal...
StringWriter expectedWriter = new StringWriter();
***************
*** 204,208 ****
private static void assertSuperclassEquals( SourceClass expected, SourceClass
actual )
{
! assertEquals( expected.getSuperclass().getQualifiedName(),
actual.getSuperclass().getQualifiedName() );
}
--- 204,211 ----
private static void assertSuperclassEquals( SourceClass expected, SourceClass
actual )
{
! String expectedSuperclass = expected.getSuperclass() != null ?
expected.getSuperclass().getQualifiedName() : null;
! String actualSuperclass = actual.getSuperclass() != null ?
actual.getSuperclass().getQualifiedName() : null;
!
! assertEquals( "Superclass is equal", expectedSuperclass,
actualSuperclass );
}
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel