Skip to content

Commit 293742a

Browse files
committed
Remove unused exceptions in tests
Javadoc
1 parent 4a1f7d7 commit 293742a

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

src/test/java/org/apache/commons/codec/binary/Base64Codec13Test.java

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,9 @@ public void testBinaryDecoder() throws DecoderException {
427427
/**
428428
* Tests to make sure Base64's implementation of Base64.encodeBase64()
429429
* static method is behaving identical to commons-codec-1.3.jar.
430-
*
431-
* @throws EncoderException problem
432430
*/
433431
@Test
434-
public void testStaticEncode() throws EncoderException {
432+
public void testStaticEncode() {
435433
for (int i = 0; i < STRINGS.length; i++) {
436434
if (STRINGS[i] != null) {
437435
final byte[] base64 = utf8(STRINGS[i]);
@@ -445,11 +443,9 @@ public void testStaticEncode() throws EncoderException {
445443
/**
446444
* Tests to make sure Base64's implementation of Base64.decodeBase64()
447445
* static method is behaving identical to commons-codec-1.3.jar.
448-
*
449-
* @throws DecoderException problem
450446
*/
451447
@Test
452-
public void testStaticDecode() throws DecoderException {
448+
public void testStaticDecode() {
453449
for (int i = 0; i < STRINGS.length; i++) {
454450
if (STRINGS[i] != null) {
455451
final byte[] base64 = utf8(STRINGS[i]);
@@ -463,11 +459,9 @@ public void testStaticDecode() throws DecoderException {
463459
/**
464460
* Tests to make sure Base64's implementation of Base64.encodeBase64Chunked()
465461
* static method is behaving identical to commons-codec-1.3.jar.
466-
*
467-
* @throws EncoderException problem
468462
*/
469463
@Test
470-
public void testStaticEncodeChunked() throws EncoderException {
464+
public void testStaticEncodeChunked() {
471465
for (int i = 0; i < STRINGS.length; i++) {
472466
if (STRINGS[i] != null) {
473467
final byte[] base64Chunked = utf8(CHUNKED_STRINGS[i]);
@@ -482,11 +476,9 @@ public void testStaticEncodeChunked() throws EncoderException {
482476
* Tests to make sure Base64's implementation of Base64.decodeBase64()
483477
* static method is behaving identical to commons-codec-1.3.jar when
484478
* supplied with chunked input.
485-
*
486-
* @throws DecoderException problem
487479
*/
488480
@Test
489-
public void testStaticDecodeChunked() throws DecoderException {
481+
public void testStaticDecodeChunked() {
490482
for (int i = 0; i < STRINGS.length; i++) {
491483
if (STRINGS[i] != null) {
492484
final byte[] base64Chunked = utf8(CHUNKED_STRINGS[i]);

src/test/java/org/apache/commons/codec/language/NysiisTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public class NysiisTest extends AbstractStringEncoderTest<Nysiis> {
4040
* @param testValues
4141
* an array of String pairs where each pair's first element is the input and the second element the
4242
* expected encoding.
43-
* @throws EncoderException for some failure scenarios */
44-
private void assertEncodings(final String[]... testValues) throws EncoderException {
43+
*/
44+
private void assertEncodings(final String[]... testValues) {
4545
for (final String[] arr : testValues) {
4646
assertEquals(arr[1], this.fullNysiis.encode(arr[0]), "Problem with " + arr[0]);
4747
}

0 commit comments

Comments
 (0)