jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jalka...@apache.org
Subject svn commit: r829983 - /incubator/jspwiki/trunk/tests/java/org/apache/wiki/WikiEngineTest.java
Date Mon, 26 Oct 2009 21:33:49 GMT
Author: jalkanen
Date: Mon Oct 26 21:33:49 2009
New Revision: 829983

URL: http://svn.apache.org/viewvc?rev=829983&view=rev
Log:
Fixed testOldVersionVars() which was trying to find an old version of the properties.

Modified:
    incubator/jspwiki/trunk/tests/java/org/apache/wiki/WikiEngineTest.java

Modified: incubator/jspwiki/trunk/tests/java/org/apache/wiki/WikiEngineTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/java/org/apache/wiki/WikiEngineTest.java?rev=829983&r1=829982&r2=829983&view=diff
==============================================================================
--- incubator/jspwiki/trunk/tests/java/org/apache/wiki/WikiEngineTest.java (original)
+++ incubator/jspwiki/trunk/tests/java/org/apache/wiki/WikiEngineTest.java Mon Oct 26 21:33:49
2009
@@ -703,27 +703,27 @@
      */
     public void testOldVersionVars() throws Exception
     {
-            Properties pr = new Properties();
-            pr.load( TestEngine.findTestProperties( "/WEB-INF/jspwiki_vers.properties" )
);
+        Properties pr = new Properties();
+        pr.load( TestEngine.findTestProperties( "/WEB-INF/jspwiki.properties" ) );
 
-            m_engine.shutdown();
-            m_engine = new TestEngine( pr );
+        m_engine.shutdown();
+        m_engine = new TestEngine( pr );
 
-            m_engine.saveText( NAME1, "[{SET foo=bar}]" );
+        m_engine.saveText( NAME1, "[{SET foo=bar}]" );
 
-            m_engine.saveText( NAME1, "[{SET foo=notbar}]" );
+        m_engine.saveText( NAME1, "[{SET foo=notbar}]" );
 
-            WikiPage v1 = m_engine.getPage( NAME1, 1 );
+        WikiPage v1 = m_engine.getPage( NAME1, 1 );
 
-            WikiPage v2 = m_engine.getPage( NAME1, 2 );
+        WikiPage v2 = m_engine.getPage( NAME1, 2 );
 
-            assertEquals( "V1", "bar", v1.getAttribute( "foo" ) );
+        assertEquals( "V1", "bar", v1.getAttribute( "foo" ) );
 
-            // FIXME: The following must run as well
-            assertEquals( "V2", "notbar", v2.getAttribute( "foo" ) );
-
-            m_engine.deletePage( NAME1 );
-        }
+        // FIXME: The following must run as well
+        assertEquals( "V2", "notbar", v2.getAttribute( "foo" ) );
+            
+        m_engine.deletePage( NAME1 );
+    }
     
     public void testSpacedNames1()
         throws Exception



Mime
View raw message