Lines 113-119
Link Here
|
113 |
// Run test cases subset |
113 |
// Run test cases subset |
114 |
COPY_DIR = false; |
114 |
COPY_DIR = false; |
115 |
System.err.println("WARNING: only subset of tests will be executed!!!"); |
115 |
System.err.println("WARNING: only subset of tests will be executed!!!"); |
116 |
suite.addTest(new ASTConverterJavadocTest("testBug125676")); |
116 |
suite.addTest(new ASTConverterJavadocTest("testBug125903")); |
117 |
return suite; |
117 |
return suite; |
118 |
} |
118 |
} |
119 |
|
119 |
|
Lines 3188-3194
Link Here
|
3188 |
} |
3188 |
} |
3189 |
|
3189 |
|
3190 |
/** |
3190 |
/** |
3191 |
* Bug 125676: [javadoc][dom] ASTNode not including javadoc |
3191 |
* @bug 125676: [javadoc] @category should not read beyond end of line |
3192 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=125676" |
3192 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=125676" |
3193 |
*/ |
3193 |
*/ |
3194 |
public void testBug125676() throws JavaModelException { |
3194 |
public void testBug125676() throws JavaModelException { |
Lines 3249-3252
Link Here
|
3249 |
); |
3249 |
); |
3250 |
verifyWorkingCopiesComments(); |
3250 |
verifyWorkingCopiesComments(); |
3251 |
} |
3251 |
} |
|
|
3252 |
|
3253 |
/** |
3254 |
* @bug 125903: [javadoc] Treat whitespace in javadoc tags as invalid tags |
3255 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=125903" |
3256 |
*/ |
3257 |
public void testBug125903() throws JavaModelException { |
3258 |
workingCopies = new ICompilationUnit[1]; |
3259 |
astLevel = AST.JLS3; |
3260 |
workingCopies[0] = getWorkingCopy("/Converter15/src/javadoc/b125903/Test.java", |
3261 |
"package javadoc.b125903;\n" + |
3262 |
"/**\n" + |
3263 |
" * {@ link java.lang.String}\n" + |
3264 |
" * @ since 2.1\n" + |
3265 |
" */\n" + |
3266 |
"public class Test {\n" + |
3267 |
"\n" + |
3268 |
"}\n" |
3269 |
); |
3270 |
CompilationUnit compilUnit = (CompilationUnit) runConversion(workingCopies[0], true); |
3271 |
verifyWorkingCopiesComments(); |
3272 |
if (docCommentSupport.equals(JavaCore.ENABLED)) { |
3273 |
// Verify method javadoc |
3274 |
ASTNode node = getASTNode(compilUnit, 0); |
3275 |
assertEquals("Invalid type for node: "+node, ASTNode.TYPE_DECLARATION, node.getNodeType()); |
3276 |
TypeDeclaration typeDeclaration = (TypeDeclaration) node; |
3277 |
Javadoc javadoc = typeDeclaration.getJavadoc(); |
3278 |
assertNotNull("TypeDeclaration should have a javadoc comment", javadoc); |
3279 |
List tags = javadoc.tags(); |
3280 |
TagElement tag = (TagElement) tags.get(0); |
3281 |
tag = (TagElement) tag.fragments().get(0); |
3282 |
assertEquals("Tag name should be empty", tag.getTagName(), "@"); |
3283 |
tag = (TagElement) tags.get(1); |
3284 |
assertEquals("Tag name should be empty", tag.getTagName(), "@"); |
3285 |
} |
3286 |
} |
3252 |
} |
3287 |
} |