jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r755109 - in /incubator/jspwiki/trunk: src/java/org/apache/wiki/content/ContentManager.java tests/java/org/apache/wiki/action/ViewActionBeanTest.java tests/java/org/apache/wiki/xmlrpc/RPCHandlerTest.java
Date Tue, 17 Mar 2009 04:16:14 GMT
Author: ajaquith
Date: Tue Mar 17 04:16:12 2009
New Revision: 755109

URL: http://svn.apache.org/viewvc?rev=755109&view=rev
Log:
Fixes to some unit tests.

Modified:
    incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java
    incubator/jspwiki/trunk/tests/java/org/apache/wiki/action/ViewActionBeanTest.java
    incubator/jspwiki/trunk/tests/java/org/apache/wiki/xmlrpc/RPCHandlerTest.java

Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java?rev=755109&r1=755108&r2=755109&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java (original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java Tue Mar 17
04:16:12 2009
@@ -906,6 +906,9 @@
             WikiEngine engine = context.getEngine();
             WikiPage page = context.getPage();
 
+            // Set the last-modified timestamp
+            page.setLastModified( new Date() );
+
             // Let the rest of the engine handle actual saving.
             page.setContent( proposedText );
             

Modified: incubator/jspwiki/trunk/tests/java/org/apache/wiki/action/ViewActionBeanTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/java/org/apache/wiki/action/ViewActionBeanTest.java?rev=755109&r1=755108&r2=755109&view=diff
==============================================================================
--- incubator/jspwiki/trunk/tests/java/org/apache/wiki/action/ViewActionBeanTest.java (original)
+++ incubator/jspwiki/trunk/tests/java/org/apache/wiki/action/ViewActionBeanTest.java Tue
Mar 17 04:16:12 2009
@@ -96,6 +96,8 @@
     }
     
     public void testSpecialPage() throws Exception {
+        // Make sure no special page FindPage actually exists
+        m_engine.deletePage( "FindPage" );
         
         // Execute the request with a 'special page' reference
         MockRoundtrip trip = m_engine.guestTrip( "/Wiki.action");

Modified: incubator/jspwiki/trunk/tests/java/org/apache/wiki/xmlrpc/RPCHandlerTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/java/org/apache/wiki/xmlrpc/RPCHandlerTest.java?rev=755109&r1=755108&r2=755109&view=diff
==============================================================================
--- incubator/jspwiki/trunk/tests/java/org/apache/wiki/xmlrpc/RPCHandlerTest.java (original)
+++ incubator/jspwiki/trunk/tests/java/org/apache/wiki/xmlrpc/RPCHandlerTest.java Tue Mar
17 04:16:12 2009
@@ -53,16 +53,16 @@
         m_engine = new TestEngine( m_props );
 
         m_handler = new RPCHandler();
+        m_engine.deletePage( "Dummy" );
         WikiContext ctx = m_engine.getWikiContextFactory().newViewContext( m_engine.createPage("Dummy")
);
         m_handler.initialize( ctx );
     }
 
-    public void tearDown()
+    public void tearDown() throws Exception
     {
         TestEngine.deleteTestPage( NAME1 );
         TestEngine.deleteAttachments( NAME1 );
         TestEngine.emptyWorkDir();
-        
         m_engine.shutdown();
     }
 



Mime
View raw message