コード例 #1
0
 @Test
 public void testGetRate() throws Exception {
   Assume.assumeNotNull(
       RateService.getInstance()
           .getRate(
               Currency.getInstance(Locale.GERMANY).getCurrencyCode(),
               new GregorianCalendar(2010, 6, 1)));
 }
コード例 #2
0
 @Test
 public void testGetInstance() throws Exception {
   Assert.assertTrue(
       "instances if singleton are not same",
       RateService.getInstance() == RateService.getInstance());
 }