Author: sback
Date: 2007-07-09 22:06:44 +0000 (Mon, 09 Jul 2007)
New Revision: 14009

Modified:
   trunk/freenet/test/freenet/support/URLEncoderDecoderTest.java
Log:
Not expected exception better handled

Modified: trunk/freenet/test/freenet/support/URLEncoderDecoderTest.java
===================================================================
--- trunk/freenet/test/freenet/support/URLEncoderDecoderTest.java       
2007-07-09 22:05:46 UTC (rev 14008)
+++ trunk/freenet/test/freenet/support/URLEncoderDecoderTest.java       
2007-07-09 22:06:44 UTC (rev 14009)
@@ -158,9 +158,7 @@

                try {
                        assertEquals(URLDecoder.decode(toDecode,true),toDecode);
-               } catch (URLEncodedFormatException e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
-               }
+               } catch (URLEncodedFormatException anException) {
+                       fail("Not expected exception thrown : " + 
anException.getMessage()); }
        }
 }
\ No newline at end of file


Reply via email to