@Test @DatabaseSetup("classpath:dbunit/user_credentials.xml") public void testFindByResetToken() { UserCredentials userCredentials = userCredentialsDao.findByResetToken(SYSTEM_TENANT_ID, "RESET_TOKEN_2"); assertNotNull(userCredentials); assertEquals("4b9e010c-27d5-11e7-93ae-92361f002671", userCredentials.getId().toString()); }
@Override public UserCredentials findByResetToken(TenantId tenantId, String resetToken) { return DaoUtil.getData(userCredentialsRepository.findByResetToken(resetToken)); }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByResetToken(TenantId tenantId, String resetToken) { return DaoUtil.getData(userCredentialsRepository.findByResetToken(resetToken)); } }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByResetToken(TenantId tenantId, String resetToken) { return DaoUtil.getData(userCredentialsRepository.findByResetToken(resetToken)); }  }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByResetToken(TenantId tenantId, String resetToken) { return DaoUtil.getData(userCredentialsRepository.findByResetToken(resetToken)); }  @Override UserCredentials findByUserId(TenantId tenantId, UUID userId); @Override UserCredentials findByActivateToken(TenantId tenantId, String activateToken); @Override UserCredentials findByResetToken(TenantId tenantId, String resetToken); }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByResetToken(TenantId tenantId, String resetToken) { return DaoUtil.getData(userCredentialsRepository.findByResetToken(resetToken)); }  @Override UserCredentials findByUserId(TenantId tenantId, UUID userId); @Override UserCredentials findByActivateToken(TenantId tenantId, String activateToken); @Override UserCredentials findByResetToken(TenantId tenantId, String resetToken);  }