cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r595797 - in /cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl: ./ src/test/java/org/apache/cocoon/el/impl/objectmodel/ObjectModelImplTestCase.java
Date Fri, 16 Nov 2007 20:01:02 GMT
Author: gkossakowski
Date: Fri Nov 16 12:01:02 2007
New Revision: 595797

URL: http://svn.apache.org/viewvc?rev=595797&view=rev
Log:
* Adding test for trivial paths when putAt() method is used.
* tweak to svn:ignore

Modified:
    cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl/   (props
changed)
    cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl/src/test/java/org/apache/cocoon/el/impl/objectmodel/ObjectModelImplTestCase.java

Propchange: cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Nov 16 12:01:02 2007
@@ -3,3 +3,5 @@
 .classpath
 .project
 *.iml
+
+.springBeans

Modified: cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl/src/test/java/org/apache/cocoon/el/impl/objectmodel/ObjectModelImplTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl/src/test/java/org/apache/cocoon/el/impl/objectmodel/ObjectModelImplTestCase.java?rev=595797&r1=595796&r2=595797&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl/src/test/java/org/apache/cocoon/el/impl/objectmodel/ObjectModelImplTestCase.java
(original)
+++ cocoon/trunk/core/cocoon-expression-language/cocoon-expression-language-impl/src/test/java/org/apache/cocoon/el/impl/objectmodel/ObjectModelImplTestCase.java
Fri Nov 16 12:01:02 2007
@@ -138,6 +138,18 @@
         
         assertTrue(objectModel.isEmpty());
     }
+    
+    public void testTrivialPath() {
+        objectModel.markLocalContext();
+        objectModel.putAt("foo", "bar");
+        
+        assertTrue(objectModel.containsKey("foo"));
+        assertEquals("bar", objectModel.get("foo"));
+        
+        objectModel.cleanupLocalContext();
+        
+        assertTrue(objectModel.isEmpty());
+    }
 
     public void testIfMapIsCreated() {
         objectModel.putAt("foo/bar/xyz", "abc");



Mime
View raw message