Title: [587] trunk/qdox/src/test/com/thoughtworks/qdox/parser/LexerTest.java: test for qdox-158, marked as todo
Revision
587
Author
rfscholte
Date
2009-03-22 08:06:24 -0500 (Sun, 22 Mar 2009)

Log Message

test for qdox-158, marked as todo

Modified Paths


Diff

Modified: trunk/qdox/src/test/com/thoughtworks/qdox/parser/LexerTest.java (586 => 587)

--- trunk/qdox/src/test/com/thoughtworks/qdox/parser/LexerTest.java	2009-03-20 22:04:41 UTC (rev 586)
+++ trunk/qdox/src/test/com/thoughtworks/qdox/parser/LexerTest.java	2009-03-22 13:06:24 UTC (rev 587)
@@ -669,4 +669,25 @@
         assertLex(Parser.BRACECLOSE, lexer);
         assertLex(0, lexer);
     }
+    
+    //for QDOX-158
+    public void todo_testAnnotationWithMultipleParameters() throws Exception {
+    	String in = 
+    			"@MyFunction.MyInterface( prefix1 = \"abc\", prefix2 = \"abc\" )";
+    	Lexer lexer = new JFlexLexer(new StringReader(in));
+    	assertLex(Parser.AT, lexer);
+    	assertLex(Parser.IDENTIFIER, lexer);
+    	assertLex(Parser.DOT, lexer);
+    	assertLex(Parser.IDENTIFIER, lexer);
+    	assertLex(Parser.PARENOPEN, lexer);
+    	assertLex(Parser.IDENTIFIER, lexer);
+    	assertLex(Parser.EQUALS, lexer);
+    	assertLex(Parser.STRING_LITERAL, lexer);
+    	assertLex(Parser.COMMA, lexer);
+    	assertLex(Parser.IDENTIFIER, lexer);
+    	assertLex(Parser.EQUALS, lexer);
+    	assertLex(Parser.STRING_LITERAL, lexer);
+    	assertLex(Parser.PARENCLOSE, lexer);
+    }
+
 }


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to