portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r510826 - /portals/jetspeed-2/trunk/components/portal/src/test/org/apache/jetspeed/decoration/TestDecorations.java
Date Fri, 23 Feb 2007 04:55:13 GMT
Author: smilek
Date: Thu Feb 22 20:55:12 2007
New Revision: 510826

URL: http://svn.apache.org/viewvc?view=rev&rev=510826
Log:
fixed BaseDecoration ctor args mismatch

Modified:
    portals/jetspeed-2/trunk/components/portal/src/test/org/apache/jetspeed/decoration/TestDecorations.java

Modified: portals/jetspeed-2/trunk/components/portal/src/test/org/apache/jetspeed/decoration/TestDecorations.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal/src/test/org/apache/jetspeed/decoration/TestDecorations.java?view=diff&rev=510826&r1=510825&r2=510826
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/test/org/apache/jetspeed/decoration/TestDecorations.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/test/org/apache/jetspeed/decoration/TestDecorations.java
Thu Feb 22 20:55:12 2007
@@ -38,6 +38,7 @@
 public class TestDecorations extends MockObjectTestCase
 {
     private Path testPathHtmlEn;
+    private Path testPath;
     private Mock prcMock;
     private Mock rvMock;
     private PathResolverCache prc;
@@ -106,6 +107,7 @@
         config = new Properties();
         config.setProperty("name", "test");
         
+        testPath = new Path("/decorations/test");
         testPathHtmlEn = new Path("/decorations/test/html/en");
     }
 
@@ -116,7 +118,7 @@
         String expectedResult = testPathHtmlEn.getChild("/images/myimage.gif").toString();
         rvMock.expects(once()).method("resourceExists").with(eq(expectedResult)).will(returnValue(true));
 
-        BaseDecoration decoration = new BaseDecoration(config, rv, testPathHtmlEn, prc);
+        BaseDecoration decoration = new BaseDecoration(config, rv, testPath, testPathHtmlEn,
prc );
         
         String result = decoration.getResource("/images/myimage.gif");
 



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message