You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/03 13:53:29 UTC
(commons-crypto) 01/02: Normalize test method names
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
commit c0a9499d3b1354d73274666b66029d6c85231f02
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 3 09:52:59 2023 -0400
Normalize test method names
---
.../org/apache/commons/crypto/cipher/AbstractCipherTest.java | 12 ++++++------
.../crypto/jna/PositionedCryptoInputStreamJnaTest.java | 2 +-
.../crypto/stream/PositionedCryptoInputStreamTest.java | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java b/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
index c9db425e..ba9ba5da 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
@@ -173,7 +173,7 @@ public abstract class AbstractCipherTest {
}
@Test
- public void closeTestAfterInit() throws Exception {
+ public void testCloseTestAfterInit() throws Exception {
// This test deliberately does not use try with resources in order to control
// the sequence of operations exactly
try (final CryptoCipher enc = getCipher(transformations[0])) {
@@ -182,7 +182,7 @@ public abstract class AbstractCipherTest {
}
@Test
- public void closeTestNoInit() throws Exception {
+ public void testCloseTestNoInit() throws Exception {
// This test deliberately does not use try with resources in order to control
// the sequence of operations exactly
try (final CryptoCipher enc = getCipher(transformations[0])) {
@@ -191,7 +191,7 @@ public abstract class AbstractCipherTest {
}
@Test
- public void closeTestRepeat() throws Exception {
+ public void testCloseTestRepeat() throws Exception {
// This test deliberately does not use try with resources in order to control
// the sequence of operations exactly
try (final CryptoCipher enc = getCipher(transformations[0])) {
@@ -201,7 +201,7 @@ public abstract class AbstractCipherTest {
}
@Test
- public void cryptoTest() throws Exception {
+ public void testCryptoTest() throws Exception {
for (final String tran : transformations) {
/** uses the small data set in {@link TestData} */
cipherTests = TestData.getTestData(tran);
@@ -241,7 +241,7 @@ public abstract class AbstractCipherTest {
}
@Test
- public void reInitAfterClose() throws Exception {
+ public void testReInitAfterClose() throws Exception {
// This test deliberately does not use try with resources in order to control
// the sequence of operations exactly
try (final CryptoCipher enc = getCipher(transformations[0])) {
@@ -252,7 +252,7 @@ public abstract class AbstractCipherTest {
}
@Test
- public void reInitTest() throws Exception {
+ public void testReInitTest() throws Exception {
// This test deliberately does not use try with resources in order to control
// the sequence of operations exactly
try (final CryptoCipher enc = getCipher(transformations[0])) {
diff --git a/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java b/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
index 2eff5961..5201c31e 100644
--- a/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
+++ b/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
@@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test;
public class PositionedCryptoInputStreamJnaTest extends PositionedCryptoInputStreamTest {
@Test
- public void doTest() throws Exception {
+ public void testCipher() throws Exception {
testCipher(OpenSslJnaCipher.class.getName());
}
diff --git a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
index 84e104b9..9bc318f9 100644
--- a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
+++ b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
@@ -277,12 +277,12 @@ public class PositionedCryptoInputStreamTest {
}
@Test
- public void doTestJCE() throws Exception {
+ public void testJCE() throws Exception {
testCipher(AbstractCipherTest.JCE_CIPHER_CLASSNAME);
}
@Test
- public void doTestJNI() throws Exception {
+ public void testJNI() throws Exception {
assumeTrue(Crypto.isNativeCodeLoaded());
testCipher(AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME);
}