struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [2/4] struts git commit: Drops commented out test
Date Wed, 22 Jun 2016 09:14:03 GMT
Drops commented out test


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/cfcefcf5
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/cfcefcf5
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/cfcefcf5

Branch: refs/heads/master
Commit: cfcefcf5898313043ef903ce0873b15fb7cf1df4
Parents: 8dfe178
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Wed Jun 22 10:38:39 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Wed Jun 22 11:04:07 2016 +0200

----------------------------------------------------------------------
 .../org/apache/struts2/components/UIBeanTest.java  | 17 -----------------
 1 file changed, 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/cfcefcf5/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
index 470cc91..b2fc843 100644
--- a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
+++ b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
@@ -164,21 +164,4 @@ public class UIBeanTest extends StrutsInternalTestCase {
         assertEquals("12", txtFld.getTheme());
     }
 
-//    I couldn't figure out how to make this test work. Bailing for now.
-//    public void testEscapeLabel() throws Exception {
-//        ValueStack stack = ActionContext.getContext().getValueStack();
-//        MockHttpServletRequest req = new MockHttpServletRequest();
-//        MockHttpServletResponse res = new MockHttpServletResponse();
-//        stack.push(this);
-//
-//        TextField txtFld = new TextField(stack, req, res);
-//        txtFld.setKey("test['foo']");
-//        txtFld.evaluateParams();
-//        assertEquals("test_label", txtFld.getParameters().get("label"));
-//    }
-//
-//    public String getText(String key) {
-//        assertEquals("test[\\'foo\\']", key);
-//        return "test_label";
-//    }
 }


Mime
View raw message