Browse Source

Fix typo in CertificateMatchingTestSource class

See gh-40822
pull/41000/head
Piyal Ahmed 2 years ago committed by Andy Wilkinson
parent
commit
092e921433
  1. 4
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ssl/CertificateMatchingTestSource.java

4
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ssl/CertificateMatchingTestSource.java

@ -82,10 +82,10 @@ record CertificateMatchingTestSource(CertificateMatchingTestSource.Algorithm alg
keyPairs.put(algorithm, algorithm.generateKeyPair()); keyPairs.put(algorithm, algorithm.generateKeyPair());
} }
List<CertificateMatchingTestSource> parameters = new ArrayList<>(); List<CertificateMatchingTestSource> parameters = new ArrayList<>();
keyPairs.forEach((algorith, matchingKeyPair) -> { keyPairs.forEach((algorithm, matchingKeyPair) -> {
List<KeyPair> nonMatchingKeyPairs = new ArrayList<>(keyPairs.values()); List<KeyPair> nonMatchingKeyPairs = new ArrayList<>(keyPairs.values());
nonMatchingKeyPairs.remove(matchingKeyPair); nonMatchingKeyPairs.remove(matchingKeyPair);
parameters.add(new CertificateMatchingTestSource(algorith, matchingKeyPair, nonMatchingKeyPairs)); parameters.add(new CertificateMatchingTestSource(algorithm, matchingKeyPair, nonMatchingKeyPairs));
}); });
return List.copyOf(parameters); return List.copyOf(parameters);
} }

Loading…
Cancel
Save