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

Modified Files:
        EjbUtilsTest.java 
Log Message:
removed exception and refactored ejb plugin, so it does not
depend on sources of testapp-ejb anymore
(preparation tom2 build )


Index: EjbUtilsTest.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/test/java/org/xdoclet/plugin/ejb/EjbUtilsTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EjbUtilsTest.java   12 Jun 2006 06:52:18 -0000      1.3
--- EjbUtilsTest.java   23 Jun 2006 14:04:54 -0000      1.4
***************
*** 6,19 ****
  package org.xdoclet.plugin.ejb;
  
- import junit.framework.AssertionFailedError;
- import junit.framework.TestCase;
- 
  import java.io.File;
- 
  import java.net.URL;
  
  import org.generama.tests.SinkWriterMapper;
  import org.xdoclet.QDoxMetadataProvider;
- import org.xdoclet.plugin.ejb.util.QDoxCachedMetadataProvider;
  
  /**
--- 6,17 ----
  package org.xdoclet.plugin.ejb;
  
  import java.io.File;
  import java.net.URL;
  
+ import junit.framework.AssertionFailedError;
+ import junit.framework.TestCase;
+ 
  import org.generama.tests.SinkWriterMapper;
  import org.xdoclet.QDoxMetadataProvider;
  
  /**
***************
*** 21,24 ****
--- 19,23 ----
   *
   * @author Diogo Quintela
+  * @verion $Revision$
   */
  public class EjbUtilsTest extends TestCase {
***************
*** 30,47 ****
  
      protected void setUp() throws Exception {
!         super.setUp();
! 
!         // Initialize runtime
!         // TODO: Should we use a "mock" ?
!         String basedir = System.getProperty("xdoclet.ejb.home");
!         assertNotNull(basedir);
!         URL reader = new File(basedir + 
"/../testapp-ejb/src/main/java").toURL();
! 
!         // We need to instantiate EjbConfig to enable runtime initialization
          new EjbConfig(
!                 new QDoxMetadataProvider(new File(reader.getPath())), 
                  new SinkWriterMapper());
  
!         // Instanciate EjbUtils
          this.ejbUtils = new EjbUtils();
      }
--- 29,38 ----
  
      protected void setUp() throws Exception {
!        // We need to instantiate EjbConfig to enable runtime initialization
          new EjbConfig(
!                 new QDoxMetadataProvider(new 
File(getClass().getResource("/org/xdoclet/testapp/ejb/beans/AccountBean.java").getPath())),
 
                  new SinkWriterMapper());
  
!         // Instanciate EjbUtils 
          this.ejbUtils = new EjbUtils();
      }


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