[P-unit-devel] SF.net SVN: p-unit: [314] trunk/punit/src/org/punit/convention/ AnnotationConvention
Status: Beta
Brought to you by:
zhanghuangzhu
|
From: <cu...@us...> - 2008-05-28 12:38:44
|
Revision: 314
http://p-unit.svn.sourceforge.net/p-unit/?rev=314&view=rev
Author: cuvavu
Date: 2008-05-28 05:38:52 -0700 (Wed, 28 May 2008)
Log Message:
-----------
Clarifying comments
Modified Paths:
--------------
trunk/punit/src/org/punit/convention/AnnotationConvention.java
Modified: trunk/punit/src/org/punit/convention/AnnotationConvention.java
===================================================================
--- trunk/punit/src/org/punit/convention/AnnotationConvention.java 2008-05-28 11:17:54 UTC (rev 313)
+++ trunk/punit/src/org/punit/convention/AnnotationConvention.java 2008-05-28 12:38:52 UTC (rev 314)
@@ -152,7 +152,7 @@
* @param annotationOnly Check for old-style name based methods?
* @param annotation Annotation to look for
* @param delegateMethod Method to use when looking for alternatives name-based methods
- * @param before Is this method an "after" method (or a before)?
+ * @param after Is this method an "after" method (or a before)?
* @param allowMultiple Allow multiple tests?
* @return
*/
@@ -184,7 +184,7 @@
}
}
- // Do we want the superclass code to be before or after the current code?
+ // Is this method an "after" method (or before)? If its after we want this class's code to be before the superclass's (or vice-versa).
List<Method> methodsList = new ArrayList<Method>();
if (after) {
if (annotatedMethods != null && annotatedMethods.length > 0) methodsList.add(annotatedMethods[0]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|