Examples of BooleanParam


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

    }
   
    @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

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

  public static class Displaying_Active_Accounts extends Context {
    @Before
    @Override
    public void setup() throws Exception {
      super.setup();
      this.includeArchived = new BooleanParam("false");
    }
View Full Code Here

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

  public static class Displaying_Active_And_Archived_Accounts extends Context {
    @Before
    @Override
    public void setup() throws Exception {
      super.setup();
      this.includeArchived = new BooleanParam("true");
    }
View Full Code Here

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

      this.startDate = new ISODateParam("20070801");
      this.endDate = new ISODateParam("20070901");
     
      this.maxTags = new IntegerParam("5");
      this.rankByAmount = new BooleanParam("true");
      this.spending = new BooleanParam("true");

      this.accounts = mock(AccountList.class);
      when(context.getAccountDAO().findVisibleAccounts(Mockito.anyString())).thenReturn(accounts);

      this.txaction = mock(Txaction.class);
View Full Code Here

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

        Locale.CHINA,
        currency,
        startDate,
        endDate,
        maxTags,
        new BooleanParam("false"),
        spending
      );

      verify(context.getTagHierarchyBuilder()).build(
        ImmutableList.of(txaction),
View Full Code Here

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

        currency,
        startDate,
        endDate,
        maxTags,
        rankByAmount,
        new BooleanParam("false")
      );

      verify(context.getTagHierarchyBuilder()).build(
        ImmutableList.of(txaction),
        GBP,
View Full Code Here

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

          Locale.CHINA,
          new CurrencyParam("USD"),
          new ISODateParam("20090801"),
          new ISODateParam("20090501"),
          new IntegerParam("5"),
          new BooleanParam("true"),
          new BooleanParam("true")
        );
      } catch (WebApplicationException e) {
        assertThat(e.getResponse().getStatus()).isEqualTo(404);
      }
    }
View Full Code Here

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

    public void setup() throws Exception {
      this.context = new MockResourceContext();
      this.resource = context.getInstance(OldTxactionsResource.class);
     
      this.currency = new CurrencyParam("GBP");
      this.uneditedOnly = new BooleanParam("false");
      this.limit = null;
      this.offset = null;
      this.startDate = null;
      this.endDate = null;
      this.amount = null;
View Full Code Here

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

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

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

      assertThat(param.getValue(), is(true));
    }
   
    @Test
    public void itIsCaseInsensitive() throws Exception {
      assertThat(new BooleanParam("true").getValue(), is(true));
      assertThat(new BooleanParam("TRUE").getValue(), is(true));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.