@Test public void testCreatePayer() throws Exception { File matcherPublicKeyFile = BritTestUtils.makeFile(BritTestUtils.TEST_MATCHER_PUBLIC_KEY_FILE); FileInputStream matcherPublicKeyInputStream = new FileInputStream(matcherPublicKeyFile); PGPPublicKey matcherPGPPublicKey = PGPUtils.readPublicKey(matcherPublicKeyInputStream); log.debug("Matcher public key id = " + matcherPGPPublicKey.getKeyID()); PayerConfig payerConfig = new PayerConfig(matcherPGPPublicKey); Payer payer = Payers.newBasicPayer(payerConfig); assertThat(payer).isNotNull(); assertThat(payer.getConfig().getMatcherPublicKey()).isEqualTo(matcherPGPPublicKey); }
public static Payer newBasicPayer(PayerConfig payerConfig) { return new BasicPayer(payerConfig); }
Payers { public static Payer newBasicPayer(PayerConfig payerConfig) { return new BasicPayer(payerConfig); } }
Payers { public static Payer newBasicPayer(PayerConfig payerConfig) { return new BasicPayer(payerConfig); } private  Payers(); }
Payers { public static Payer newBasicPayer(PayerConfig payerConfig) { return new BasicPayer(payerConfig); } private  Payers(); static Payer newBasicPayer(PayerConfig payerConfig); }
Payers { public static Payer newBasicPayer(PayerConfig payerConfig) { return new BasicPayer(payerConfig); } private  Payers(); static Payer newBasicPayer(PayerConfig payerConfig);  }