Author: vishwanathk
Date: Sun Aug 19 14:42:02 2012
New Revision: 1374761
URL: http://svn.apache.org/viewvc?rev=1374761&view=rev
Log:
Small refactoring - Rename method from jarArchive to warArchive
Modified:
openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/util/WebArchives.java
Modified:
openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/util/WebArchives.java
URL:
http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/util/WebArchives.java?rev=1374761&r1=1374760&r2=1374761&view=diff
==============================================================================
---
openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/util/WebArchives.java
(original)
+++
openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/util/WebArchives.java
Sun Aug 19 14:42:02 2012
@@ -41,12 +41,12 @@ import static junit.framework.Assert.ass
*/
public class WebArchives {
- public static File jarArchive(Class... classes) throws IOException {
- return jarArchive(new HashMap<String, String>(), "temp", classes);
+ public static File warArchive(Class... classes) throws IOException {
+ return warArchive(new HashMap<String, String>(), "temp", classes);
}
- public static File jarArchive(Map<String, String> entries, String
archiveNamePrefix, Class... classes) throws IOException {
+ public static File warArchive(Map<String, String> entries, String
archiveNamePrefix, Class... classes) throws IOException {
ClassLoader loader = WebArchives.class.getClassLoader();
@@ -94,10 +94,11 @@ public class WebArchives {
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
resp.setHeader("Content-Type", "text/html");
Debug.Trace.report(resp.getOutputStream());
+
}
}
public static void main(String[] args) throws IOException {
- System.out.println(jarArchive(Foo.class));
+ System.out.println(warArchive(Foo.class));
}
}
\ No newline at end of file