@Test public void createFromStrings() { final List<String> inputs = Arrays.asList("KEYONE", "KEYTWO"); final PublicKey[] expectedOutputs = new PublicKey[]{ PublicKey.from(new byte[]{40, 70, 14, 52}), PublicKey.from(new byte[]{40, 70, 19, 88}) }; final List<PublicKey> keys = this.converter.convert(inputs); assertThat(keys).hasSize(2).containsExactlyInAnyOrder(expectedOutputs); }
public Collection<KeyPair> convert(Collection<ConfigKeyPair> configKeyPairs) { return configKeyPairs .stream() .map(this::convert) .collect(Collectors.toList()); }
KeyPairConverter { public Collection<KeyPair> convert(Collection<ConfigKeyPair> configKeyPairs) { return configKeyPairs .stream() .map(this::convert) .collect(Collectors.toList()); } }
KeyPairConverter { public Collection<KeyPair> convert(Collection<ConfigKeyPair> configKeyPairs) { return configKeyPairs .stream() .map(this::convert) .collect(Collectors.toList()); } KeyPairConverter(Config config, EnvironmentVariableProvider envProvider); }
KeyPairConverter { public Collection<KeyPair> convert(Collection<ConfigKeyPair> configKeyPairs) { return configKeyPairs .stream() .map(this::convert) .collect(Collectors.toList()); } KeyPairConverter(Config config, EnvironmentVariableProvider envProvider); Collection<KeyPair> convert(Collection<ConfigKeyPair> configKeyPairs); List<PublicKey> convert(List<String> values); }
KeyPairConverter { public Collection<KeyPair> convert(Collection<ConfigKeyPair> configKeyPairs) { return configKeyPairs .stream() .map(this::convert) .collect(Collectors.toList()); } KeyPairConverter(Config config, EnvironmentVariableProvider envProvider); Collection<KeyPair> convert(Collection<ConfigKeyPair> configKeyPairs); List<PublicKey> convert(List<String> values);  }