Package org.springside.modules.utils.Clock

Examples of org.springside.modules.utils.Clock.MockClock


  @Test
  public void registerUser() {
    User user = UserData.randomNewUser();
    Date currentTime = new Date();
    accountService.setClock(new MockClock(currentTime));

    accountService.registerUser(user);

    // 验证user的角色,注册日期和加密后的密码都被自动更新了。
    assertThat(user.getRoles()).isEqualTo("user");
View Full Code Here


  @Test
  public void registerUser() {
    User user = UserData.randomNewUser();
    Date currentTime = new Date();
    accountService.setClock(new MockClock(currentTime));

    accountService.registerUser(user);

    // 验证user的角色,注册日期和加密后的密码都被自动更新了。
    assertThat(user.getRoles()).isEqualTo("user");
View Full Code Here

TOP

Related Classes of org.springside.modules.utils.Clock.MockClock

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.