Skip to content

Commit 53fd5f3

Browse files
committed
Does not make sense to test construction of a utility class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744568 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4c84e20 commit 53fd5f3

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import static org.apache.commons.codec.binary.StringUtils.getBytesUtf8;
2121
import static org.junit.Assert.assertEquals;
22-
import static org.junit.Assert.assertNotNull;
2322

2423
import java.io.ByteArrayInputStream;
2524
import java.io.File;
@@ -77,11 +76,6 @@ public void tearDown() {
7776
}
7877
}
7978

80-
@Test
81-
public void testConstructable() {
82-
assertNotNull(new DigestUtils());
83-
}
84-
8579
@Test(expected=IllegalArgumentException.class)
8680
public void testInternalNoSuchAlgorithmException() {
8781
DigestUtils.getDigest("Bogus Bogus");

src/test/java/org/apache/commons/codec/digest/HmacUtilsTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.apache.commons.codec.digest;
1818

1919
import static org.junit.Assert.assertEquals;
20-
import static org.junit.Assert.assertNotNull;
2120

2221
import java.io.ByteArrayInputStream;
2322
import java.io.IOException;
@@ -37,10 +36,6 @@
3736
*/
3837
@SuppressWarnings("deprecation") // temporarily ignore that HmacUtils is deprecated
3938
public class HmacUtilsTest {
40-
@Test
41-
public void testConstructor() {
42-
assertNotNull(new HmacUtils());
43-
}
4439

4540
@Test(expected = IllegalArgumentException.class)
4641
public void testEmptyKey() {

0 commit comments

Comments
 (0)