@Test void metadataFormat () { String actualRaw = GcpSSHKeyMetadata.metadataFormat(keys); assertEquals(rawKeys, actualRaw); }
public static String metadataFormat (Collection<GcpSSHKeyMetadata> metadataCollection) { return metadataCollection.stream() .map(GcpSSHKeyMetadata::metadataFormat) .collect(Collectors.joining("\n", "", "\n")); }
GcpSSHKeyMetadata { public static String metadataFormat (Collection<GcpSSHKeyMetadata> metadataCollection) { return metadataCollection.stream() .map(GcpSSHKeyMetadata::metadataFormat) .collect(Collectors.joining("\n", "", "\n")); } }
GcpSSHKeyMetadata { public static String metadataFormat (Collection<GcpSSHKeyMetadata> metadataCollection) { return metadataCollection.stream() .map(GcpSSHKeyMetadata::metadataFormat) .collect(Collectors.joining("\n", "", "\n")); } GcpSSHKeyMetadata(String username, String publicKey, String identifier); }
GcpSSHKeyMetadata { public static String metadataFormat (Collection<GcpSSHKeyMetadata> metadataCollection) { return metadataCollection.stream() .map(GcpSSHKeyMetadata::metadataFormat) .collect(Collectors.joining("\n", "", "\n")); } GcpSSHKeyMetadata(String username, String publicKey, String identifier); static List<GcpSSHKeyMetadata> parseMetadata(String originalMetadata); static String metadataFormat(Collection<GcpSSHKeyMetadata> metadataCollection); String getUsername(); String getPublicKey(); String getIdentifier(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); }
GcpSSHKeyMetadata { public static String metadataFormat (Collection<GcpSSHKeyMetadata> metadataCollection) { return metadataCollection.stream() .map(GcpSSHKeyMetadata::metadataFormat) .collect(Collectors.joining("\n", "", "\n")); } GcpSSHKeyMetadata(String username, String publicKey, String identifier); static List<GcpSSHKeyMetadata> parseMetadata(String originalMetadata); static String metadataFormat(Collection<GcpSSHKeyMetadata> metadataCollection); String getUsername(); String getPublicKey(); String getIdentifier(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }