Skip to content

Commit 964fcac

Browse files
committed
Polish Tests
Issue gh-18269 Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
1 parent 1d1b3ff commit 964fcac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusJwtEncoderDecoderTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
*
5151
* @author Ziqin Wang
5252
*/
53-
public class NimbusJwtEncoderDecoderTests {
53+
class NimbusJwtEncoderDecoderTests {
5454

5555
@Test
56-
public void encodeAndDecodeHS256() throws GeneralSecurityException {
56+
void encodeAndDecodeHS256() throws GeneralSecurityException {
5757
KeyGenerator keyGenerator = KeyGenerator.getInstance("HmacSHA256");
5858
SecretKey secretKey = keyGenerator.generateKey();
5959

@@ -68,7 +68,7 @@ public void encodeAndDecodeHS256() throws GeneralSecurityException {
6868
}
6969

7070
@Test
71-
public void encodeAndDecodeRS256() throws GeneralSecurityException {
71+
void encodeAndDecodeRS256() throws GeneralSecurityException {
7272
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
7373
keyPairGenerator.initialize(2048);
7474
KeyPair keyPair = keyPairGenerator.generateKeyPair();
@@ -86,7 +86,7 @@ public void encodeAndDecodeRS256() throws GeneralSecurityException {
8686
}
8787

8888
@Test
89-
public void encodeAndDecodeES256() throws GeneralSecurityException, JOSEException {
89+
void encodeAndDecodeES256() throws GeneralSecurityException, JOSEException {
9090
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("EC");
9191
keyPairGenerator.initialize(new ECGenParameterSpec("secp256r1"));
9292
KeyPair keyPair = keyPairGenerator.generateKeyPair();

0 commit comments

Comments
 (0)