Fix method name getCommentHeader

This commit is contained in:
Paul Schaub 2021-12-14 14:42:53 +01:00
parent bff2b3fbfe
commit 1681f3934f
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ public final class ArmorUtils {
return armor; return armor;
} }
public static List<String> getCommendHeaderValues(ArmoredInputStream armor) { public static List<String> getCommentHeaderValues(ArmoredInputStream armor) {
return getArmorHeaderValues(armor, HEADER_COMMENT); return getArmorHeaderValues(armor, HEADER_COMMENT);
} }

View File

@ -70,7 +70,7 @@ public class ArmorUtilsTest {
assertEquals(HashAlgorithm.SHA512, hashes.get(0)); assertEquals(HashAlgorithm.SHA512, hashes.get(0));
// Comment // Comment
List<String> commentHeader = ArmorUtils.getCommendHeaderValues(armorIn); List<String> commentHeader = ArmorUtils.getCommentHeaderValues(armorIn);
assertEquals(2, commentHeader.size()); assertEquals(2, commentHeader.size());
assertEquals("This is a comment", commentHeader.get(0)); assertEquals("This is a comment", commentHeader.get(0));
assertEquals("This is another comment", commentHeader.get(1)); assertEquals("This is another comment", commentHeader.get(1));