tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: r1050912 - in /tomcat/taglibs/standard/trunk/impl/src: main/java/org/apache/taglibs/standard/tag/rt/core/ test/java/org/apache/taglibs/standard/tag/rt/ test/java/org/apache/taglibs/standard/tag/rt/core/
Date Sun, 19 Dec 2010 17:30:35 GMT
Author: jboynes
Date: Sun Dec 19 17:30:34 2010
New Revision: 1050912

URL: http://svn.apache.org/viewvc?rev=1050912&view=rev
Log:
Apply patch from Rex Wang for #50461 and add test case

Added:
    tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/
    tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/core/
    tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/core/OutTagTest.java
  (with props)
Modified:
    tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/core/OutTag.java

Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/core/OutTag.java
URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/core/OutTag.java?rev=1050912&r1=1050911&r2=1050912&view=diff
==============================================================================
--- tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/core/OutTag.java
(original)
+++ tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/core/OutTag.java
Sun Dec 19 17:30:34 2010
@@ -29,7 +29,7 @@ public class OutTag extends OutSupport {
 
     private Object value;
     private String def;
-    private boolean escapeXml;
+    private boolean escapeXml = true;
 
     //*********************************************************************
     // Accessors

Added: tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/core/OutTagTest.java
URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/core/OutTagTest.java?rev=1050912&view=auto
==============================================================================
--- tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/core/OutTagTest.java
(added)
+++ tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/core/OutTagTest.java
Sun Dec 19 17:30:34 2010
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.taglibs.standard.tag.rt.core;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ */
+public class OutTagTest {
+
+    private OutTag tag = new OutTag();
+
+    @Test
+    public void testDefaults() {
+        Assert.assertNull(tag.evalValue());
+        Assert.assertNull(tag.evalDefault());
+        Assert.assertTrue(tag.evalEscapeXml());
+    }
+}

Propchange: tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/rt/core/OutTagTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



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


Mime
View raw message