Skip to content

Commit f023dc1

Browse files
committed
A couple of comments.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130282 13f79535-47bb-0310-9956-ffa450edef68
1 parent fb24a15 commit f023dc1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/org/apache/commons/codec/net/URLCodecTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ public void testEncodeObjects() throws Exception {
233233
urlcodec.encode( dObj );
234234
fail( "Trying to url encode a Double object should cause an exception.");
235235
} catch( EncoderException ee ) {
236+
// Exception expected, test segment passes.
236237
}
237238
}
238239

@@ -243,11 +244,13 @@ public void testInvalidEncoding() {
243244
urlcodec.encode(plain);
244245
fail( "We set the encoding to a bogus NONSENSE vlaue, this shouldn't have worked.");
245246
} catch( EncoderException ee ) {
247+
// Exception expected, test segment passes.
246248
}
247249
try {
248250
urlcodec.decode(plain);
249251
fail( "We set the encoding to a bogus NONSENSE vlaue, this shouldn't have worked.");
250252
} catch( DecoderException ee ) {
253+
// Exception expected, test segment passes.
251254
}
252255
}
253256

@@ -272,6 +275,7 @@ public void testDecodeObjects() throws Exception {
272275
urlcodec.decode( dObj );
273276
fail( "Trying to url encode a Double object should cause an exception.");
274277
} catch( DecoderException ee ) {
278+
// Exception expected, test segment passes.
275279
}
276280
}
277281

0 commit comments

Comments
 (0)