Package com.wesabe.api.accounts.params

Examples of com.wesabe.api.accounts.params.CurrencyParam


    }
   
    @Test
    public void itThrowsA404() throws Exception {
      try {
        resource.show(context.getUser(), Locale.CHINA, new CurrencyParam("USD"), new ISODateParam("20090801"), new ISODateParam("20090501"));
      } catch (WebApplicationException e) {
        assertThat(e.getResponse().getStatus(), is(404));
      }
    }
View Full Code Here


    @SuppressWarnings("unchecked")
    @Before
    public void setup() throws Exception {
      this.context = new MockResourceContext();
     
      this.currency = new CurrencyParam("GBP");
     
      this.accounts = mock(AccountList.class);
      when(context.getAccountDAO().findVisibleAccounts(Mockito.anyString())).thenReturn(accounts);
     
      this.txaction = mock(Txaction.class);
View Full Code Here

      super.setup();
    }
   
    @Test
    public void itUpdatesTheCurrency() {
      accountResource.update(user, Locale.ENGLISH, new IntegerParam("1"), null, new CurrencyParam("USD"), null);
      verify(account).setCurrency(Currency.getInstance("USD"));
      verify(accountDAO).update(account);
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    @Before
    public void setup() throws Exception {
      this.context = new MockResourceContext();

      this.currency = new CurrencyParam("GBP");
     
      this.intervalType = new IntervalTypeParam("weekly");
     
      this.startDate = new ISODateParam("20070801");
      this.endDate = new ISODateParam("20070901");
View Full Code Here

TOP

Related Classes of com.wesabe.api.accounts.params.CurrencyParam

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.