Skip to content

Commit 1f799f6

Browse files
committed
Remove unused exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1751512 13f79535-47bb-0310-9956-ffa450edef68
1 parent b7e7b40 commit 1f799f6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public void testDecodeStringEmpty() throws DecoderException {
304304
}
305305

306306
@Test
307-
public void testEncodeByteArrayEmpty() throws EncoderException {
307+
public void testEncodeByteArrayEmpty() {
308308
assertTrue(Arrays.equals(new byte[0], new Hex().encode(new byte[0])));
309309
}
310310

@@ -314,7 +314,7 @@ public void testEncodeByteArrayObjectEmpty() throws EncoderException {
314314
}
315315

316316
@Test
317-
public void testEncodeByteBufferEmpty() throws EncoderException {
317+
public void testEncodeByteBufferEmpty() {
318318
assertTrue(Arrays.equals(new byte[0], new Hex().encode(ByteBuffer.allocate(0))));
319319
}
320320

@@ -367,7 +367,7 @@ public void testEncodeDecodeHexCharArrayRandom() throws DecoderException, Encode
367367
}
368368

369369
@Test
370-
public void testEncodeHexByteArrayEmpty() throws EncoderException {
370+
public void testEncodeHexByteArrayEmpty() {
371371
assertTrue(Arrays.equals(new char[0], Hex.encodeHex(new byte[0])));
372372
assertTrue(Arrays.equals(new byte[0], new Hex().encode(new byte[0])));
373373
}
@@ -405,7 +405,7 @@ public void testEncodeHexByteArrayZeroes() {
405405
}
406406

407407
@Test
408-
public void testEncodeHexByteBufferEmpty() throws EncoderException {
408+
public void testEncodeHexByteBufferEmpty() {
409409
assertTrue(Arrays.equals(new char[0], Hex.encodeHex(ByteBuffer.allocate(0))));
410410
assertTrue(Arrays.equals(new byte[0], new Hex().encode(ByteBuffer.allocate(0))));
411411
}
@@ -448,12 +448,12 @@ public void testEncodeStringEmpty() throws EncoderException {
448448
}
449449

450450
@Test
451-
public void testGetCharset() throws UnsupportedEncodingException, DecoderException {
451+
public void testGetCharset() {
452452
Assert.assertEquals(Charsets.UTF_8, new Hex(Charsets.UTF_8).getCharset());
453453
}
454454

455455
@Test
456-
public void testGetCharsetName() throws UnsupportedEncodingException, DecoderException {
456+
public void testGetCharsetName() {
457457
Assert.assertEquals(Charsets.UTF_8.name(), new Hex(Charsets.UTF_8).getCharsetName());
458458
}
459459

0 commit comments

Comments
 (0)