Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/test/java/org/xdoclet/plugin/ejb/interfaces
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26802/src/test/java/org/xdoclet/plugin/ejb/interfaces
Modified Files:
LocalInterfacePluginTestCase.java
RemoteInterfacePluginTestCase.java
Log Message:
Replace Sun's ejb dependency with geromino-ejb due to licence restriction.
Formatting with Jalopy.
Index: RemoteInterfacePluginTestCase.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/test/java/org/xdoclet/plugin/ejb/interfaces/RemoteInterfacePluginTestCase.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** RemoteInterfacePluginTestCase.java 13 Nov 2004 09:27:03 -0000 1.10
--- RemoteInterfacePluginTestCase.java 28 Apr 2005 07:22:24 -0000 1.11
***************
*** 1,4 ****
--- 1,15 ----
+ /*
+ * Copyright (c) 2003
+ * XDoclet Team
+ * All rights reserved.
+ */
package org.xdoclet.plugin.ejb.interfaces;
+ import java.io.File;
+ import java.io.FileNotFoundException;
+
+ import java.net.MalformedURLException;
+ import java.net.URL;
+
import org.generama.MetadataProvider;
import org.generama.Plugin;
***************
*** 6,15 ****
import org.generama.VelocityTemplateEngine;
import org.generama.WriterMapper;
- import org.xdoclet.AbstractJavaGeneratingPluginTestCase;
! import java.io.File;
! import java.io.FileNotFoundException;
! import java.net.MalformedURLException;
! import java.net.URL;
/**
--- 17,22 ----
import org.generama.VelocityTemplateEngine;
import org.generama.WriterMapper;
! import org.xdoclet.AbstractJavaGeneratingPluginTestCase;
/**
***************
*** 18,23 ****
*/
public class RemoteInterfacePluginTestCase extends
AbstractJavaGeneratingPluginTestCase {
! protected Plugin createPlugin(MetadataProvider metadataProvider,
WriterMapper writerMapper) throws Exception {
! return new RemoteInterfacePlugin(new VelocityTemplateEngine(),
(QDoxCapableMetadataProvider) metadataProvider, writerMapper);
}
--- 25,33 ----
*/
public class RemoteInterfacePluginTestCase extends
AbstractJavaGeneratingPluginTestCase {
! protected URL getExpected() throws FileNotFoundException,
MalformedURLException {
! String basedir = System.getProperty("xdoclet.ejb.home");
! assertNotNull(basedir);
! return new File(basedir +
!
"/../testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/interfaces/AccountRemote.java").toURL();
}
***************
*** 28,35 ****
}
! protected URL getExpected() throws FileNotFoundException,
MalformedURLException {
! String basedir = System.getProperty("xdoclet.ejb.home");
! assertNotNull(basedir);
! return new File(basedir +
"/../testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/interfaces/AccountRemote.java").toURL();
}
! }
--- 38,45 ----
}
! protected Plugin createPlugin(MetadataProvider metadataProvider,
WriterMapper writerMapper)
! throws Exception {
! return new RemoteInterfacePlugin(new VelocityTemplateEngine(),
(QDoxCapableMetadataProvider) metadataProvider,
! writerMapper);
}
! }
\ No newline at end of file
Index: LocalInterfacePluginTestCase.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-ejb/src/test/java/org/xdoclet/plugin/ejb/interfaces/LocalInterfacePluginTestCase.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** LocalInterfacePluginTestCase.java 13 Nov 2004 09:27:03 -0000 1.10
--- LocalInterfacePluginTestCase.java 28 Apr 2005 07:22:24 -0000 1.11
***************
*** 1,4 ****
--- 1,15 ----
+ /*
+ * Copyright (c) 2003
+ * XDoclet Team
+ * All rights reserved.
+ */
package org.xdoclet.plugin.ejb.interfaces;
+ import java.io.File;
+ import java.io.FileNotFoundException;
+
+ import java.net.MalformedURLException;
+ import java.net.URL;
+
import org.generama.MetadataProvider;
import org.generama.Plugin;
***************
*** 6,15 ****
import org.generama.VelocityTemplateEngine;
import org.generama.WriterMapper;
- import org.xdoclet.AbstractJavaGeneratingPluginTestCase;
! import java.io.File;
! import java.io.FileNotFoundException;
! import java.net.MalformedURLException;
! import java.net.URL;
/**
--- 17,22 ----
import org.generama.VelocityTemplateEngine;
import org.generama.WriterMapper;
! import org.xdoclet.AbstractJavaGeneratingPluginTestCase;
/**
***************
*** 18,23 ****
*/
public class LocalInterfacePluginTestCase extends
AbstractJavaGeneratingPluginTestCase {
! protected Plugin createPlugin(MetadataProvider metadataProvider,
WriterMapper writerMapper) throws Exception {
! return new LocalInterfacePlugin(new VelocityTemplateEngine(),
(QDoxCapableMetadataProvider) metadataProvider, writerMapper);
}
--- 25,32 ----
*/
public class LocalInterfacePluginTestCase extends
AbstractJavaGeneratingPluginTestCase {
! protected URL getExpected() throws FileNotFoundException,
MalformedURLException {
! String basedir = System.getProperty("xdoclet.ejb.home");
! assertNotNull(basedir);
! return new File(basedir +
"/../testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/interfaces/AccountLocal.java").toURL();
}
***************
*** 28,35 ****
}
! protected URL getExpected() throws FileNotFoundException,
MalformedURLException {
! String basedir = System.getProperty("xdoclet.ejb.home");
! assertNotNull(basedir);
! return new File(basedir +
"/../testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/interfaces/AccountLocal.java").toURL();
}
! }
--- 37,44 ----
}
! protected Plugin createPlugin(MetadataProvider metadataProvider,
WriterMapper writerMapper)
! throws Exception {
! return new LocalInterfacePlugin(new VelocityTemplateEngine(),
(QDoxCapableMetadataProvider) metadataProvider,
! writerMapper);
}
! }
\ No newline at end of file
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits