File tree Expand file tree Collapse file tree
src/test/org/apache/commons/codec/net Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments