Package com.wesabe.api.accounts.params

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


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

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

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.