commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertdon...@mac.com>
Subject Re: [PATCH] [DIGESTER] replace deprecated java classes
Date Wed, 17 Jul 2002 16:55:09 GMT
applied. many thanks.

- robert

On Friday, July 12, 2002, at 02:47 AM, Mike Flester wrote:

> Hi --
>
> There were some deprecation warnings in the digester
> tests due to deprecated java classes. I've updated these.
>
> There is still one deprecation warning but it's
> due to testing a deprecated digester method,
> so it should stay.
>
> Thanks,
> Mike
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> Index: jakarta-
> commons/digester/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.
> java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-
> commons/digester/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.
> java,v
> retrieving revision 1.5
> diff -u -r1.5 BeanPropertySetterRuleTestCase.java
> --- jakarta-
> commons/digester/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.
> java	23 Mar 2002 17:45:59 -0000	1.5
> +++ jakarta-
> commons/digester/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.
> java	11 Jul 2002 02:09:09 -0000
> @@ -61,7 +61,8 @@
>
>  import java.io.IOException;
>  import java.io.InputStream;
> -import java.io.StringBufferInputStream;
> +import java.io.Reader;
> +import java.io.StringReader;
>  import java.util.ArrayList;
>  import java.util.List;
>
> @@ -173,7 +174,7 @@
>
>
>          try {
> -            digester.parse(xmlTestStream());
> +            digester.parse(xmlTestReader());
>
>          } catch (Throwable t) {
>              fail("Exception prevented test execution: " + t);
> @@ -264,7 +265,7 @@
>          digester.addRule("root/gamma", gammaRule);
>
>          try {
> -            digester.parse(xmlTestStream());
> +            digester.parse(xmlTestReader());
>
>          } catch (Throwable t) {
>              fail("Exception prevented test execution: " + t);
> @@ -315,7 +316,7 @@
>
>          SimpleTestBean bean = null;
>          try {
> -            bean = (SimpleTestBean) digester.parse(xmlTestStream());
> +            bean = (SimpleTestBean) digester.parse(xmlTestReader());
>
>          } catch (Throwable t) {
>              fail("Exception prevented test execution: " + t);
> @@ -356,7 +357,7 @@
>
>          SimpleTestBean bean = null;
>          try {
> -            bean = (SimpleTestBean) digester.parse(xmlTestStream());
> +            bean = (SimpleTestBean) digester.parse(xmlTestReader());
>
>          } catch (Throwable t) {
>              fail("Exception prevented test execution: " + t);
> @@ -385,8 +386,8 @@
>      /**
>       * Get input stream from {@link #TEST_XML}.
>       */
> -    private InputStream xmlTestStream() throws IOException {
> -        return new StringBufferInputStream(TEST_XML);
> +    private Reader xmlTestReader() throws IOException {
> +        return new StringReader(TEST_XML);
>      }
>
>  }
>
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.
> org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.
> org>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message