@Test public void testIbanToBic() { Assert.assertNull("iban to bic should be null", IbanUtil.getBicOfIban(null)); for (final Entry<String, String> entry : IbanUtilTestCases.getIbanToBic().entrySet()) { Assert.assertEquals("iban to bic failed", entry.getValue(), IbanUtil.getBicOfIban(entry.getKey())); } }
public static String getBicOfIban(final String pstring) { final String country = StringUtils.substring(pstring, 0, 2); final String bankNumber = getBankNumberOfIban(pstring); return BANK_ACCOINT_BIC_MAP.bankAccounts().get(new CountryBankAccountData(country, bankNumber)); }
IbanUtil { public static String getBicOfIban(final String pstring) { final String country = StringUtils.substring(pstring, 0, 2); final String bankNumber = getBankNumberOfIban(pstring); return BANK_ACCOINT_BIC_MAP.bankAccounts().get(new CountryBankAccountData(country, bankNumber)); } }
IbanUtil { public static String getBicOfIban(final String pstring) { final String country = StringUtils.substring(pstring, 0, 2); final String bankNumber = getBankNumberOfIban(pstring); return BANK_ACCOINT_BIC_MAP.bankAccounts().get(new CountryBankAccountData(country, bankNumber)); }  }
IbanUtil { public static String getBicOfIban(final String pstring) { final String country = StringUtils.substring(pstring, 0, 2); final String bankNumber = getBankNumberOfIban(pstring); return BANK_ACCOINT_BIC_MAP.bankAccounts().get(new CountryBankAccountData(country, bankNumber)); }  static ValueWithPos<String> ibanFormatWithPos(final ValueWithPos<String> pentry); static String ibanFormat(final String pstring); static String ibanCompress(final String pstring); static String getBankNumberOfIban(final String pstring); static String getAccountNumberOfIban(final String pstring); static String getBicOfIban(final String pstring); }
IbanUtil { public static String getBicOfIban(final String pstring) { final String country = StringUtils.substring(pstring, 0, 2); final String bankNumber = getBankNumberOfIban(pstring); return BANK_ACCOINT_BIC_MAP.bankAccounts().get(new CountryBankAccountData(country, bankNumber)); }  static ValueWithPos<String> ibanFormatWithPos(final ValueWithPos<String> pentry); static String ibanFormat(final String pstring); static String ibanCompress(final String pstring); static String getBankNumberOfIban(final String pstring); static String getAccountNumberOfIban(final String pstring); static String getBicOfIban(final String pstring); static final char SEPARATOR; }