Skip to content

Commit 5230fc1

Browse files
committed
Tabs -> spaces (was not picked up by a local default Maven build).
1 parent c3787e7 commit 5230fc1

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

‎httpcore5/src/test/java/org/apache/hc/core5/http/ssl/TestTlsCiphers.java‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@
3939
class TestTlsCiphers {
4040

4141
static String[] testExcludeH2Blacklisted() {
42-
final String[] mixCipherSuites = {
43-
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
44-
"TLS_RSA_WITH_AES_256_CBC_SHA256",
45-
"AES_SHA_US",
46-
"TLS_RSA_WITH_AES_128_CBC_SHA",
47-
"NULL_SHA",
48-
"TLS_RSA_WITH_AES_256_GCM_SHA384"
49-
};
50-
return TlsCiphers.excludeH2Blacklisted(mixCipherSuites);
51-
}
42+
final String[] mixCipherSuites = {
43+
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
44+
"TLS_RSA_WITH_AES_256_CBC_SHA256",
45+
"AES_SHA_US",
46+
"TLS_RSA_WITH_AES_128_CBC_SHA",
47+
"NULL_SHA",
48+
"TLS_RSA_WITH_AES_256_GCM_SHA384"
49+
};
50+
return TlsCiphers.excludeH2Blacklisted(mixCipherSuites);
51+
}
5252

5353
static String[] testExcludeWeak() {
54-
final String[] weakCiphersSuites = {
54+
final String[] weakCiphersSuites = {
5555
"SSL_RSA_WITH_RC4_128_SHA",
5656
"SSL_RSA_WITH_3DES_EDE_CBC_SHA",
5757
"TLS_DH_anon_WITH_AES_128_CBC_SHA",
@@ -75,26 +75,26 @@ static String[] testExcludeWeak() {
7575
"TLS_RSA_WITH_AES_256_GCM_SHA384"
7676
};
7777
return TlsCiphers.excludeWeak(weakCiphersSuites);
78-
}
78+
}
7979

8080
@ParameterizedTest
8181
@MethodSource
8282
void testExcludeH2Blacklisted(final String strongCipherSuite) {
8383
Assertions.assertFalse(TlsCiphers.isWeak(strongCipherSuite));
8484
}
8585

86-
@ParameterizedTest
86+
@ParameterizedTest
8787
@MethodSource
8888
void testExcludeWeak(final String strongCipherSuite) {
8989
Assertions.assertFalse(TlsCiphers.isWeak(strongCipherSuite));
9090
}
9191

92-
@Test
92+
@Test
9393
void testExcludeWeakNull() {
9494
Assertions.assertNull(TlsCiphers.excludeWeak((String[]) null));
9595
}
9696

97-
@ParameterizedTest
97+
@ParameterizedTest
9898
@ValueSource(strings = {
9999
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
100100
"TLS_RSA_WITH_AES_256_CBC_SHA256",
@@ -124,9 +124,9 @@ void testStrongCipherSuites(final String strongCipherSuite) {
124124
"SSL_DH_anon_EXPORT_WITH_RC4_40_MD5",
125125
"TLS_KRB5_EXPORT_WITH_RC4_40_SHA",
126126
"SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5"
127-
})
128-
void testWeakCiphersDisabledByDefault(final String weakCiphersSuite) {
129-
Assertions.assertTrue(TlsCiphers.isWeak(weakCiphersSuite));
130-
}
127+
})
128+
void testWeakCiphersDisabledByDefault(final String weakCiphersSuite) {
129+
Assertions.assertTrue(TlsCiphers.isWeak(weakCiphersSuite));
130+
}
131131

132132
}

0 commit comments

Comments
 (0)