Examples of DecimalParam


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

      super.setup();
    }
   
    @Test
    public void itCreatesANewAccountBalance() {
      accountBalancesResource.create(user, Locale.ENGLISH, new IntegerParam("1"), new DecimalParam("20"));
      verify(accountBalanceDAO).create(Mockito.any(AccountBalance.class));
    }
View Full Code Here

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

    }
   
    @Test
    public void itReturnsBadRequest() {
      try {
        accountBalancesResource.create(user, Locale.ENGLISH, new IntegerParam("1"), new DecimalParam("20"));
        fail("expected a Bad Request exception");
      } catch (WebApplicationException ex) {
        assertThat(ex.getResponse().getStatus()).isEqualTo(Status.BAD_REQUEST.getStatusCode());
      }
    }
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.