[jboss-cvs] jboss-seam/examples/wiki/src/test/org/jboss/seam/wiki/test/plugin ...
Christian Bauer
christian at hibernate.org
Thu Jan 3 09:54:34 EST 2008
User: cbauer
Date: 08/01/03 09:54:34
Modified: examples/wiki/src/test/org/jboss/seam/wiki/test/plugin
ForumDAOTests.java ForumQueryTests.java
Log:
Dev profile now requires MySQL, disabled tests conditionally that don't run on HSQL
Revision Changes Path
1.3 +2 -2 jboss-seam/examples/wiki/src/test/org/jboss/seam/wiki/test/plugin/ForumDAOTests.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ForumDAOTests.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/test/org/jboss/seam/wiki/test/plugin/ForumDAOTests.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ForumDAOTests.java 3 Jan 2008 14:27:46 -0000 1.2
+++ ForumDAOTests.java 3 Jan 2008 14:54:34 -0000 1.3
@@ -175,9 +175,9 @@
}
- /* TODO: Queries are not supported by HSQL DB
@Test
public void findTopicsOne() throws Exception {
+ if (!database.equals(Database.mysql)) return;
loginMember();
@@ -207,6 +207,7 @@
@Test
public void findTopicsTwo() throws Exception {
+ if (!database.equals(Database.mysql)) return;
loginMember();
@@ -229,7 +230,6 @@
}.run();
}
- */
private void loginMember() throws Exception {
new FacesRequest() {
1.2 +2 -1 jboss-seam/examples/wiki/src/test/org/jboss/seam/wiki/test/plugin/ForumQueryTests.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ForumQueryTests.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/test/org/jboss/seam/wiki/test/plugin/ForumQueryTests.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ForumQueryTests.java 19 Dec 2007 04:29:27 -0000 1.1
+++ ForumQueryTests.java 3 Jan 2008 14:54:34 -0000 1.2
@@ -9,7 +9,6 @@
import org.dbunit.operation.DatabaseOperation;
import org.jboss.seam.wiki.test.util.DBUnitSeamTest;
import org.jboss.seam.wiki.core.model.WikiDirectory;
-import org.jboss.seam.wiki.core.model.WikiDocument;
import org.jboss.seam.wiki.core.dao.WikiNodeDAO;
import org.jboss.seam.wiki.plugin.forum.*;
import org.jboss.seam.contexts.Contexts;
@@ -67,6 +66,7 @@
@Test
public void findTopicsOne() throws Exception {
+ if (!database.equals(Database.mysql)) return;
loginMember();
@@ -102,6 +102,7 @@
@Test
public void findTopicsTwo() throws Exception {
+ if (!database.equals(Database.mysql)) return;
loginMember();
More information about the jboss-cvs-commits
mailing list