Package com.wesabe.api.util.money

Examples of com.wesabe.api.util.money.CurrencyCodeParser


    public void itThrowsAnExceptionOnAnUnknownCurrencyCode() throws Exception {
      boolean exceptionThrown = false;
      String unknownCurrencyCode = null;
      String errorMessage = null;
      try {
        new CurrencyCodeParser().parse("GIBBERISH");
      } catch (UnknownCurrencyCodeException e) {
        exceptionThrown = true;
        unknownCurrencyCode = e.getCurrencyCode();
        errorMessage = e.getMessage();
      }
View Full Code Here


        throws UnknownCurrencyCodeException {
      assertEquals(
          MessageFormat.format("should map {0} to {1} but doesn''t",
              oldCurrencyCode, modernCurrencyCode),
          modernCurrencyCode,
          new CurrencyCodeParser().parse(oldCurrencyCode).getCurrencyCode()
      );
    }
View Full Code Here

TOP

Related Classes of com.wesabe.api.util.money.CurrencyCodeParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.