Package com.wesabe.api.accounts.params

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


     
      verify(context.getNetWorthSummaryPresenter()).present(summaries, Locale.CHINA);
    }

    private XmlsonObject handleGet() {
      return resource.show(context.getUser(), Locale.CHINA, new IntervalTypeParam("weekly"), new CurrencyParam("USD"), new ISODateParam("20090801"), new ISODateParam("20090901"), ImmutableSet.<UriParam>of(), ImmutableSet.<Tag>of());
    }
View Full Code Here


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

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

  public static class Parsing_A_Valid_Interval_Type {
    private IntervalTypeParam param;
   
    @Before
    public void setup() throws Exception {
      this.param = new IntervalTypeParam("weekly");
    }
View Full Code Here

 
  public static class Parsing_An_Invalid_Interval_Type {
    @Test
    public void itReturnsA404() throws Exception {
      try {
        new IntervalTypeParam("dingo");
      } catch (WebApplicationException e) {
        final Response response = e.getResponse();
       
        assertThat(response.getStatus(), is(404));
      }
View Full Code Here

    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");
     
      this.filteredTags = mock(Set.class);
View Full Code Here

TOP

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

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.