Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-junit/src/test/java/org/xdoclet/plugin/junit
In directory 
sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv17850/plugin-junit/src/test/java/org/xdoclet/plugin/junit

Modified Files:
        TestSuitePluginTestCase.java 
Log Message:
improvements in maven build


Index: TestSuitePluginTestCase.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-junit/src/test/java/org/xdoclet/plugin/junit/TestSuitePluginTestCase.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TestSuitePluginTestCase.java        14 Aug 2006 09:16:33 -0000      1.6
--- TestSuitePluginTestCase.java        24 Aug 2006 05:24:54 -0000      1.7
***************
*** 17,21 ****
      protected Plugin createPlugin(MetadataProvider metadataProvider, 
WriterMapper writerMapper) throws Exception {
          final TestSuitePlugin testSuitePlugin = new TestSuitePlugin(new 
VelocityTemplateEngine(), (QDoxMetadataProvider) metadataProvider, 
writerMapper);
!         testSuitePlugin.setPackagereplace("some.pack");
          testSuitePlugin.setName("SomeName");
          return testSuitePlugin;
--- 17,21 ----
      protected Plugin createPlugin(MetadataProvider metadataProvider, 
WriterMapper writerMapper) throws Exception {
          final TestSuitePlugin testSuitePlugin = new TestSuitePlugin(new 
VelocityTemplateEngine(), (QDoxMetadataProvider) metadataProvider, 
writerMapper);
!         testSuitePlugin.setPackagereplace("org.xdoclet.testapp");
          testSuitePlugin.setName("SomeName");
          return testSuitePlugin;
***************
*** 23,34 ****
  
      protected MetadataProvider createMetadataProvider() throws IOException {
!         return new QDoxMetadataProvider(new 
File(getClass().getResource("/src/test/java").getPath()));
      }
  
      protected URL getExpected() throws FileNotFoundException, 
MalformedURLException {
!         String basedir = System.getProperty("xdoclet.junit.home");
!         assertNotNull(basedir);
! 
!         return new File(basedir + 
"/src/test/testdata/some/pack/AllTests.java").toURL();
      }
  
--- 23,32 ----
  
      protected MetadataProvider createMetadataProvider() throws IOException {
!         final URL reader = getResourceRelativeToThisPackage("./");
!         return new QDoxMetadataProvider(new File(reader.getPath()));
      }
  
      protected URL getExpected() throws FileNotFoundException, 
MalformedURLException {
!         return 
getResourceRelativeToThisPackage("../../testapp/AllTests.java");
      }
  


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to