Skip to content

Commit 76049b3

Browse files
Applied spotless formatting
1 parent 16aa2e0 commit 76049b3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

service/common/src/test/java/org/apache/polaris/service/auth/PemUtilsTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class PemUtilsTest {
5151

5252
private static final String RSA_PRIVATE_KEY_FILE = "rsa-private-key.pem";
5353

54-
private static final String RSA_PUBLIC_KEY_AND_PRIVATE_KEY_FILE = "rsa-public-key-and-private-key.pem";
54+
private static final String RSA_PUBLIC_KEY_AND_PRIVATE_KEY_FILE = "rsa-public-key-pair.pem";
5555

5656
private static final String EMPTY_FILE = "empty.pem";
5757

@@ -112,14 +112,16 @@ public void testReadPrivateKeyFromFileRSA() throws IOException {
112112

113113
@Test
114114
public void testReadPublicKeyFromFileRSAWithPrivateKeyIgnored() throws IOException {
115-
final PublicKey publicKeyRead = PemUtils.readPublicKeyFromFile(rsaPublicKeyAndPrivateKeyPath, RSA_ALGORITHM);
115+
final PublicKey publicKeyRead =
116+
PemUtils.readPublicKeyFromFile(rsaPublicKeyAndPrivateKeyPath, RSA_ALGORITHM);
116117

117118
assertEquals(rsaPublicKey, publicKeyRead);
118119
}
119120

120121
@Test
121122
public void testReadEmptyFIle() {
122-
assertThrows(IOException.class, () -> PemUtils.readPublicKeyFromFile(emptyFilePath, RSA_ALGORITHM));
123+
assertThrows(
124+
IOException.class, () -> PemUtils.readPublicKeyFromFile(emptyFilePath, RSA_ALGORITHM));
123125
}
124126

125127
private static String getPublicKeyEncoded(final PublicKey publicKey) {

0 commit comments

Comments
 (0)