Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-web/src/test/java/org/xdoclet/plugin/web
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22748/plugin-web/src/test/java/org/xdoclet/plugin/web
Modified Files:
WebPluginTestCase.java
Log Message:
XDP-93 added missing dependent xsd/dtd's + moved them to subdir - !! tests are
still failing :(
Index: WebPluginTestCase.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-web/src/test/java/org/xdoclet/plugin/web/WebPluginTestCase.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** WebPluginTestCase.java 1 Dec 2005 00:45:21 -0000 1.12
--- WebPluginTestCase.java 2 Dec 2005 20:32:35 -0000 1.13
***************
*** 22,26 ****
protected void setUp() throws Exception {
super.setUp();
! servletVersion = "2.3"; // make sure it's reset to 2.3 for every
test, even if a specific test changes the version number
}
--- 22,33 ----
protected void setUp() throws Exception {
super.setUp();
! servletVersion = null; // make sure it's reset for every test, so
that only tests specifying a version number are executed.
! }
!
! public void testGenerateContent() throws Throwable {
! if (servletVersion == null) {
! return;
! }
! super.testGenerateContent();
}
***************
*** 37,42 ****
if (servletVersion.equals("2.2")) {
return
getResourceRelativeToThisPackage("../../testapp/web/expected/web-22.xml");
! } else {
return
getResourceRelativeToThisPackage("../../testapp/web/expected/web-23.xml");
}
}
--- 44,51 ----
if (servletVersion.equals("2.2")) {
return
getResourceRelativeToThisPackage("../../testapp/web/expected/web-22.xml");
! } else if (servletVersion.equals("2.3")) {
return
getResourceRelativeToThisPackage("../../testapp/web/expected/web-23.xml");
+ } else {
+ return
getResourceRelativeToThisPackage("../../testapp/web/expected/web-24.xml");
}
}
***************
*** 47,49 ****
--- 56,71 ----
testGenerateContent();
}
+
+ public void testWithServlet23() throws Throwable {
+ servletVersion = "2.3";
+ ((WebPlugin) plugin).setServletversion(servletVersion);
+ testGenerateContent();
+ }
+
+ public void testWithServlet24() throws Throwable {
+ servletVersion = "2.4";
+ ((WebPlugin) plugin).setServletversion(servletVersion);
+ plugin.setValidate(false);
+ testGenerateContent();
+ }
}
-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits