db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r365745 - /db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java
Date Tue, 03 Jan 2006 20:59:02 GMT
Author: mvdb
Date: Tue Jan  3 12:58:59 2006
New Revision: 365745

URL: http://svn.apache.org/viewcvs?rev=365745&view=rev
Log:
Fail if property is set, defaults to not failing.

Modified:
    db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java

Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java?rev=365745&r1=365744&r2=365745&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java Tue Jan  3
12:58:59 2006
@@ -188,7 +188,11 @@
         }
         else
         {
-            fail("Platform " + getPlatformName() + " does not match " + getPlatform().getName());
+            // set this jvm property to true when you want failures when there is a platform
mismatch.
+            if ("true".equals(System.getProperty("ddlutils.failcheckplatform")))
+            {
+                fail("Platform " + getPlatformName() + " does not match " + getPlatform().getName());
+            }
         }
     }
 



Mime
View raw message