Skip to content

Commit

Permalink
Normalize test method names
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 3, 2023
1 parent ef82b39 commit c0a9499
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void byteBufferTest(final String transformation, final byte[] key, final
}

@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])) {
Expand All @@ -182,7 +182,7 @@ public void closeTestAfterInit() throws Exception {
}

@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])) {
Expand All @@ -191,7 +191,7 @@ public void closeTestNoInit() throws Exception {
}

@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])) {
Expand All @@ -201,7 +201,7 @@ public void closeTestRepeat() throws Exception {
}

@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);
Expand Down Expand Up @@ -241,7 +241,7 @@ SecretKeySpec newSecretKeySpec() {
}

@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])) {
Expand All @@ -252,7 +252,7 @@ public void reInitAfterClose() throws Exception {
}

@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])) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public class PositionedCryptoInputStreamJnaTest extends PositionedCryptoInputStreamTest {

@Test
public void doTest() throws Exception {
public void testCipher() throws Exception {
testCipher(OpenSslJnaCipher.class.getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ private void doSeekTests(final String cipherClass) throws Exception {
}

@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);
}
Expand Down

0 comments on commit c0a9499

Please sign in to comment.