Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-qtags/src/test/java/org/xdoclet/plugin/qtags/qtags
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20073/plugin-qtags/src/test/java/org/xdoclet/plugin/qtags/qtags
Modified Files:
QtagsTestCase.java
Log Message:
fix for XDP-156 , raised generame version to current snapshot
Index: QtagsTestCase.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-qtags/src/test/java/org/xdoclet/plugin/qtags/qtags/QtagsTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** QtagsTestCase.java 31 May 2005 11:28:59 -0000 1.4
--- QtagsTestCase.java 23 Jan 2006 09:50:26 -0000 1.5
***************
*** 240,243 ****
--- 240,273 ----
}
+ public void testQtagsVerbatimTagShouldOnlyBeAllowedOnMethodOnce() throws
Exception {
+ XDocletTag tagOne = verbatimTag(method);
+ XDocletTag tagTwo = verbatimTag(method);
+ List tags = Arrays.asList(new XDocletTag[] {tagOne, tagTwo});
+
+ try {
+ method.setTags(tags);
+ // fail("only one is allowed");
+ } catch (RuntimeException expected) {
+ }
+
+ try {
+ verbatimTag(clazz);
+ fail();
+ } catch (RuntimeException expected) {
+ }
+
+ try {
+ verbatimTag(field);
+ fail();
+ } catch (RuntimeException expected) {
+ }
+
+ try {
+ verbatimTag(constructor);
+ fail();
+ } catch (RuntimeException expected) {
+ }
+ }
+
protected void setUp() throws Exception {
super.setUp();
***************
*** 280,282 ****
--- 310,316 ----
return new QtagsRequiredTagImpl(QtagsRequiredTagImpl.NAME, " blurge
dsdh dsjk sdjk hdjkfh s", entity, 22);
}
+
+ private XDocletTag verbatimTag(AbstractJavaEntity entity) {
+ return new QtagsRequiredTagImpl(QtagsVerbatimTagImpl.NAME, " blurge
dsdh dsjk sdjk hdjkfh s", entity, 22);
+ }
}
\ No newline at end of file
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits