public class CurrencyDirectoryTest extends junit.framework.TestCase
CurrencyDirectory
implementations.Constructor and Description |
---|
CurrencyDirectoryTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertContainsCurrency(Currency[] currencies,
String isoCode)
Checks a given array of currencies to contain an instance corresponding to a given ISO code.
|
protected void |
assertNotContainsCurrency(Currency[] currencies,
String isoCode)
Checks a given array of currencies to not contain an instance corresponding to a given ISO code.
|
CurrencyDirectory |
getCurrencyDirectory()
Gets the
CurrencyDirectory implementation tests are performed with. |
void |
setCurrencyDirectory(CurrencyDirectory value)
Sets the
CurrencyDirectory implementation tests are performed with. |
void |
testCurrencyConstraints()
Tests the
CurrencyDirectory.getDtausCurrencies(Date) method to return correct values for the EUR and DEM
currency for various dates. |
void |
testGetDtausCurrencies()
Tests the
CurrencyDirectory.getDtausCurrencies(Date) method to return sane values. |
void |
testGetDtausCurrenciesNull()
Test the
CurrencyDirectory.getDtausCurrencies(Date) method to handle illegal arguments correctly by
throwing a NullPointerException . |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
public CurrencyDirectoryTest()
protected void assertContainsCurrency(Currency[] currencies, String isoCode)
currencies
- The currencies to check.isoCode
- ISO code to check existence in currencies
with.NullPointerException
- if either currencies
or isoCode
is null
.protected void assertNotContainsCurrency(Currency[] currencies, String isoCode)
currencies
- The currencies to check.isoCode
- ISO code to check existence in currencies
with.NullPointerException
- if either currencies
or isoCode
is null
.public CurrencyDirectory getCurrencyDirectory()
CurrencyDirectory
implementation tests are performed with.CurrencyDirectory
implementation tests are performed with.public final void setCurrencyDirectory(CurrencyDirectory value)
CurrencyDirectory
implementation tests are performed with.value
- the CurrencyDirectory
implementation to perform tests with.public void testCurrencyConstraints() throws Exception
CurrencyDirectory.getDtausCurrencies(Date)
method to return correct values for the EUR and DEM
currency for various dates.Exception
public void testGetDtausCurrencies() throws Exception
CurrencyDirectory.getDtausCurrencies(Date)
method to return sane values.Exception
public void testGetDtausCurrenciesNull()
CurrencyDirectory.getDtausCurrencies(Date)
method to handle illegal arguments correctly by
throwing a NullPointerException
.Copyright © 2005–2014 jDTAUS. All rights reserved.