/** * Test method for {@link javax.money.CurrencyUnitImpl.Builder#setCurrencyCode(java.lang.String)} * and {@link javax.money.CurrencyUnitImpl.Builder#getCurrencyCode()} . */ @Test public void testGetSetCurrencyCode() { MoneyCurrency.Builder builder = new MoneyCurrency.Builder().setCurrencyCode("code1"); assertEquals("code1", builder.getCurrencyCode()); }
/** * Test method for {@link javax.money.CurrencyUnitImpl.Builder#Builder(java.lang.String, * java.lang.String)} . */ @Test public void testBuilderStringString() { MoneyCurrency.Builder builder = new MoneyCurrency.Builder("ns", "test"); assertEquals("test", builder.getCurrencyCode()); assertEquals("ns", builder.getNamespace()); }