Revision: 607
http://stripes.svn.sourceforge.net/stripes/?rev=607&view=rev
Author: b4pro
Date: 2007-09-07 13:23:18 -0700 (Fri, 07 Sep 2007)
Log Message:
-----------
resolves STS-416 (add eclipse .project file in order to allow stripes
development / source checkout with eclipse)
- added eclipse .classpath & .project files
- updated testNG version to 5.5 (otherwhise eclipse testNG plugin does not work)
- fixed some generics in GenericsBindingTests that were not working in eclipse
(eclipse issue - they worked with ant and apparently with IntelliJ, too)
Modified Paths:
--------------
trunk/stripes/pom.xml
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
trunk/tests/tests.iml
Added Paths:
-----------
trunk/.classpath
trunk/.project
trunk/tests/lib/testng-5.5-jdk15.jar
Removed Paths:
-------------
trunk/tests/lib/testng-5.0.2-jdk15.jar
Added: trunk/.classpath
===================================================================
--- trunk/.classpath (rev 0)
+++ trunk/.classpath 2007-09-07 20:23:18 UTC (rev 607)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="examples/web/WEB-INF/classes"
path="examples/src"/>
+ <classpathentry kind="src" output="stripes/classes" path="stripes/src"/>
+ <classpathentry kind="src" output="tests/classes" path="tests/src"/>
+ <classpathentry kind="lib" path="build/lib/hostedqa.jar"/>
+ <classpathentry kind="lib" path="dist/stripes-1.5-sources.jar"/>
+ <classpathentry kind="lib" path="dist/stripes-1.5.jar"/>
+ <classpathentry kind="lib"
path="examples/web/WEB-INF/lib/commons-logging.jar"/>
+ <classpathentry kind="lib" path="examples/web/WEB-INF/lib/cos.jar"/>
+ <classpathentry kind="lib" path="examples/web/WEB-INF/lib/jstl.jar"/>
+ <classpathentry kind="lib"
path="examples/web/WEB-INF/lib/log4j-1.2.9.jar"/>
+ <classpathentry kind="lib"
path="examples/web/WEB-INF/lib/standard.jar"/>
+ <classpathentry kind="lib" path="examples/web/WEB-INF/lib/stripes.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/build/jsp-api.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/build/mail.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/build/servlet-api.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/build/tlddoc.jar"/>
+ <classpathentry kind="lib"
path="stripes/lib/deploy/commons-logging.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/deploy/cos.jar"/>
+ <classpathentry kind="lib"
path="stripes/lib/test/commons-fileupload-1.2.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/test/commons-io-1.2.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/test/log4j-1.2.9.jar"/>
+ <classpathentry kind="lib" path="stripes/lib/test/spring.jar"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="tests/lib/testng-5.5-jdk15.jar"/>
+ <classpathentry kind="output" path="stripes/classes"/>
+</classpath>
Added: trunk/.project
===================================================================
--- trunk/.project (rev 0)
+++ trunk/.project 2007-09-07 20:23:18 UTC (rev 607)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>stripes-svn</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Modified: trunk/stripes/pom.xml
===================================================================
--- trunk/stripes/pom.xml 2007-09-07 20:03:32 UTC (rev 606)
+++ trunk/stripes/pom.xml 2007-09-07 20:23:18 UTC (rev 607)
@@ -37,7 +37,25 @@
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
- <version>1.1</version>
+ <version>1.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>logkit</groupId>
+ <artifactId>logkit</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>avalon-framework</groupId>
+
<artifactId>avalon-framework</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
@@ -62,7 +80,7 @@
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
- <version>5.02</version>
+ <version>5.5</version>
<scope>test</scope>
</dependency>
Deleted: trunk/tests/lib/testng-5.0.2-jdk15.jar
===================================================================
(Binary files differ)
Added: trunk/tests/lib/testng-5.5-jdk15.jar
===================================================================
(Binary files differ)
Property changes on: trunk/tests/lib/testng-5.5-jdk15.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified:
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
===================================================================
---
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
2007-09-07 20:03:32 UTC (rev 606)
+++
trunk/tests/src/net/sourceforge/stripes/controller/GenericsBindingTests.java
2007-09-07 20:23:18 UTC (rev 607)
@@ -34,7 +34,7 @@
/** Makes a roundtrip using the current instances' type. */
protected MockRoundtrip getRoundtrip() {
- return new MockRoundtrip(StripesTestFixture.getServletContext(),
getClass());
+ return new MockRoundtrip(StripesTestFixture.getServletContext(),
GenericsBindingTests.class);
}
@Test(groups="fast")
@@ -43,7 +43,7 @@
trip.addParameter("number", "123.4");
trip.execute();
- GenericsBindingTests bean = trip.getActionBean(getClass());
+ GenericsBindingTests bean =
trip.getActionBean(GenericsBindingTests.class);
Assert.assertNotNull(bean.getNumber());
Assert.assertEquals(bean.getNumber(), new Double(123.4));
}
@@ -56,7 +56,7 @@
trip.addParameter("list[2]", "yes");
trip.execute();
- GenericsBindingTests bean = trip.getActionBean(getClass());
+ GenericsBindingTests bean =
trip.getActionBean(GenericsBindingTests.class);
Assert.assertNotNull(bean.getList());
Assert.assertEquals(bean.getList().get(0), Boolean.TRUE);
Assert.assertEquals(bean.getList().get(1), Boolean.FALSE);
@@ -71,7 +71,7 @@
trip.addParameter("map[30]", "1/1/2030");
trip.execute();
- GenericsBindingTests bean = trip.getActionBean(getClass());
+ GenericsBindingTests bean =
trip.getActionBean(GenericsBindingTests.class);
Assert.assertNotNull(bean.getMap());
Assert.assertEquals(bean.getMap().get(10l), makeDate(2010,1,1));
Assert.assertEquals(bean.getMap().get(20l), makeDate(2020,1,1));
@@ -85,7 +85,7 @@
trip.addParameter("bean.stringProperty", "foobar");
trip.execute();
- GenericsBindingTests bean = trip.getActionBean(getClass());
+ GenericsBindingTests bean =
trip.getActionBean(GenericsBindingTests.class);
Assert.assertNotNull(bean.getBean());
Assert.assertEquals(bean.getBean().getLongProperty(), new Long(1234));
Assert.assertEquals(bean.getBean().getStringProperty(), "foobar");
Modified: trunk/tests/tests.iml
===================================================================
--- trunk/tests/tests.iml 2007-09-07 20:03:32 UTC (rev 606)
+++ trunk/tests/tests.iml 2007-09-07 20:23:18 UTC (rev 607)
@@ -13,7 +13,7 @@
<orderEntry type="module-library">
<library>
<CLASSES>
- <root url="jar://$MODULE_DIR$/lib/testng-5.0.2-jdk15.jar!/" />
+ <root url="jar://$MODULE_DIR$/lib/testng-5.5-jdk15.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development