velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r774997 - in /velocity/engine/trunk/src/test/org/apache/velocity/test: ScopeTestCase.java StopDirectiveTestCase.java
Date Fri, 15 May 2009 03:58:12 GMT
Author: nbubna
Date: Fri May 15 03:58:12 2009
New Revision: 774997

URL: http://svn.apache.org/viewvc?rev=774997&view=rev
Log:
fix a few jdk5-isms

Modified:
    velocity/engine/trunk/src/test/org/apache/velocity/test/ScopeTestCase.java
    velocity/engine/trunk/src/test/org/apache/velocity/test/StopDirectiveTestCase.java

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/ScopeTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/ScopeTestCase.java?rev=774997&r1=774996&r2=774997&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/ScopeTestCase.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/ScopeTestCase.java Fri May 15
03:58:12 2009
@@ -37,7 +37,7 @@
     public void setUp() throws Exception
     {
         super.setUp();
-        engine.setProperty(RuntimeConstants.SET_NULL_ALLOWED, true);
+        engine.setProperty(RuntimeConstants.SET_NULL_ALLOWED, Boolean.TRUE);
     }
 
     public void testScopeGetLeakIntoInner()

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/StopDirectiveTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/StopDirectiveTestCase.java?rev=774997&r1=774996&r2=774997&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/StopDirectiveTestCase.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/StopDirectiveTestCase.java Fri
May 15 03:58:12 2009
@@ -77,7 +77,7 @@
         assertEvalEquals("a", "a$!log.startCapture()#stop('woogie!')b");
 
         info("Log: "+log.getLog());
-        assertTrue(log.getLog().contains("StopCommand: woogie!"));
+        assertTrue(log.getLog().indexOf("StopCommand: woogie!") >= 0);
     }
 
 }
\ No newline at end of file



Mime
View raw message