struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r487800 - /struts/struts1/trunk/tiles2/src/test/java/org/apache/struts/tiles2/TestTilesPlugin.java
Date Sat, 16 Dec 2006 12:44:49 GMT
Author: apetrelli
Date: Sat Dec 16 04:44:49 2006
New Revision: 487800

URL: http://svn.apache.org/viewvc?view=rev&rev=487800
Log:
STR-2986
Corrected tests asserts and wrong resources.

Modified:
    struts/struts1/trunk/tiles2/src/test/java/org/apache/struts/tiles2/TestTilesPlugin.java

Modified: struts/struts1/trunk/tiles2/src/test/java/org/apache/struts/tiles2/TestTilesPlugin.java
URL: http://svn.apache.org/viewvc/struts/struts1/trunk/tiles2/src/test/java/org/apache/struts/tiles2/TestTilesPlugin.java?view=diff&rev=487800&r1=487799&r2=487800
==============================================================================
--- struts/struts1/trunk/tiles2/src/test/java/org/apache/struts/tiles2/TestTilesPlugin.java
(original)
+++ struts/struts1/trunk/tiles2/src/test/java/org/apache/struts/tiles2/TestTilesPlugin.java
Sat Dec 16 04:44:49 2006
@@ -115,7 +115,7 @@
 
         pluginConfig.addProperty(
             "definitions-config",
-            "/org/apache/struts/tiles/config/" + configFileName);
+            "/org/apache/struts/tiles2/config/" + configFileName);
 
         moduleConfig.addPlugInConfig(pluginConfig);
         return moduleConfig;
@@ -172,7 +172,8 @@
         // Retrieve TilesContainer
         TilesContainer container = TilesAccess.getContainer(actionServlet
                 .getServletContext());
-        assertSame(container.getClass().getName(), BasicTilesContainer.class);
+        assertSame(container.getClass().getName(),
+                BasicTilesContainer.class.getName());
         
         // Retrieve factory for module1
         DefinitionsFactory factory1 = ((BasicTilesContainer) container)
@@ -210,7 +211,8 @@
   // Retrieve TilesContainer
   TilesContainer container = TilesAccess.getContainer(actionServlet
           .getServletContext());
-  assertSame(container.getClass().getName(), BasicTilesContainer.class);
+  assertSame(container.getClass().getName(),
+          BasicTilesContainer.class.getName());
   
   // Retrieve factory for module1
   DefinitionsFactory factory1 = ((BasicTilesContainer) container)



Mime
View raw message