Package com.wesabe.grendel.representations

Examples of com.wesabe.grendel.representations.UpdateUserRepresentation


  public static class A_Valid_New_User_Request {
    private UpdateUserRepresentation req;
   
    @Before
    public void setup() throws Exception {
      this.req = new UpdateUserRepresentation();
     
      req.setPassword("happenstance".toCharArray());
    }
View Full Code Here


  public static class An_Invalid_New_User_Request {
    private UpdateUserRepresentation req;
   
    @Before
    public void setup() throws Exception {
      this.req = new UpdateUserRepresentation();
    }
View Full Code Here

    @Test
    public void itDeserializesJSON() throws Exception {
      final String json = "{\"password\":\"hoohah\"}";
     
      final ObjectMapper mapper = new ObjectMapper();
      final UpdateUserRepresentation rep = mapper.readValue(json, UpdateUserRepresentation.class);
     
      assertThat(rep.getPassword()).isEqualTo("hoohah".toCharArray());
    }
View Full Code Here

      when(keySet.relock(
        any(char[].class), any(char[].class), any(SecureRandom.class))
      ).thenReturn(newKeySet);

      this.entity = new UpdateUserRepresentation();
      entity.setPassword("woohoo".toCharArray());
    }
View Full Code Here

TOP

Related Classes of com.wesabe.grendel.representations.UpdateUserRepresentation

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.