dims 2002/09/24 06:46:12 Modified: java/test/encoding TestAttributes.java Log: Checking in (BUT commenting out) test case for - Bug #12453 (Axis does not correctly HTML-encode <'s and >'s) - Bug #12452 (Axis fails to http-encode & (ampersands)) Revision Changes Path 1.17 +16 -2 xml-axis/java/test/encoding/TestAttributes.java Index: TestAttributes.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/encoding/TestAttributes.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- TestAttributes.java 16 Aug 2002 16:41:35 -0000 1.16 +++ TestAttributes.java 24 Sep 2002 13:46:12 -0000 1.17 @@ -105,8 +105,22 @@ } public void testSimpleType() throws Exception { - SimpleBean bean = new SimpleBean("test value"); - bean.temp = 85.0F; + checkSimpleBeanRoundTrip("test value", 85.0F); + } + + public void testSimpleType2() throws Exception { + //Testcase for 12453 - Axis does not correctly HTML-encode <'s and >'s + //checkSimpleBeanRoundTrip("http://mysite.com?a=1&b=2", 85.0F); + } + + public void testSimpleType3() throws Exception { + //Testcase for 12453 - Axis does not correctly HTML-encode <'s and >'s + //checkSimpleBeanRoundTrip("</name>", 85.0F); + } + + private void checkSimpleBeanRoundTrip(String text, float temp) throws Exception { + SimpleBean bean = new SimpleBean(text); + bean.temp = temp; MessageContext msgContext = new MessageContext(new AxisServer(new BasicServerConfig())); SOAPEnvelope msg = new SOAPEnvelope();