harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry M. Kononov" <dmitry.m.kono...@gmail.com>
Subject Re: svn commit: r409607 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/net/ main/java/java/util/ test/java/tests/api/java/net/ test/java/tests/api/java/util/
Date Fri, 26 May 2006 09:52:07 GMT
Stepan,

On 5/26/06, Stepan Mishura <stepan.mishura@gmail.com> wrote:
> Sorry, I didn't catch - what for the second catch block was inserted:

The second catch allows us to see the human-readable message of the
JUnit output, if the other than the UnsupportedEncodingException
exception occurs for some reason.
Actually, you are right, since Harmony does not throw
UnsupportedEncodingException at all the second catch may be removed.
What do you think, should it be removed? If yes, I am Ok with this.

> +    public void test_decodeLjava_lang_String_Ljava_lang_String() {
> +        try {
> +            URLDecoder.decode("", "");
> +            fail("UnsupportedEncodingException expected");
> +        } catch (UnsupportedEncodingException e) {
> +            // expected
> +        } catch (Exception e) {
> +            assertEquals(UnsupportedEncodingException.class, e.getClass());
> +        }
> +    }

Thanks.
-- 
Dmitry M. Kononov
Intel Managed Runtime Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message