incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1088597 - /sling/trunk/contrib/extensions/i18n/src/test/java/org/apache/sling/i18n/impl/JcrResourceBundleTest.java
Date Mon, 04 Apr 2011 12:36:26 GMT
Author: fmeschbe
Date: Mon Apr  4 12:36:25 2011
New Revision: 1088597

URL: http://svn.apache.org/viewvc?rev=1088597&view=rev
Log:
SLING-2046 Adapt Mock ResourceResolver to new ResourceResolver API

Modified:
    sling/trunk/contrib/extensions/i18n/src/test/java/org/apache/sling/i18n/impl/JcrResourceBundleTest.java

Modified: sling/trunk/contrib/extensions/i18n/src/test/java/org/apache/sling/i18n/impl/JcrResourceBundleTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/i18n/src/test/java/org/apache/sling/i18n/impl/JcrResourceBundleTest.java?rev=1088597&r1=1088596&r2=1088597&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/i18n/src/test/java/org/apache/sling/i18n/impl/JcrResourceBundleTest.java
(original)
+++ sling/trunk/contrib/extensions/i18n/src/test/java/org/apache/sling/i18n/impl/JcrResourceBundleTest.java
Mon Apr  4 12:36:25 2011
@@ -170,6 +170,18 @@ public class JcrResourceBundleTest exten
             public boolean isLive() {
                 return true;
             }
+
+            public ResourceResolver clone(Map<String, Object> authenticationInfo) {
+                return null;
+            }
+
+            public Iterator<String> getAttributeNames() {
+                return null;
+            }
+
+            public Object getAttribute(String name) {
+                return null;
+            }
         };
 
         createTestContent();
@@ -244,13 +256,13 @@ public class JcrResourceBundleTest exten
     // create test data
     static {
         // 1. direct child node of language node, using sling:key
-        add(MESSAGES_DE, new Message("", "kitchen", "KŸche", false));
+        add(MESSAGES_DE, new Message("", "kitchen", "K�che", false));
         // 2. direct child node of language node, using nodename
         add(MESSAGES_DE, new Message("", "plate", "Teller", true));
         // 3. nested node, using sling:key
         add(MESSAGES_DE, new Message("f", "fork", "Gabel", false));
         // 4. nested node, using nodename
-        add(MESSAGES_DE, new Message("s/p/o", "spoon", "Lšffel", true));
+        add(MESSAGES_DE, new Message("s/p/o", "spoon", "L�ffel", true));
 
         // 5. not present in DE
         add(MESSAGES_DE, PARENT_MSG);



Mime
View raw message