diff --git a/omod-2.2/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs2_2/PasswordResetController2_2Test.java b/omod-2.2/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs2_2/PasswordResetController2_2Test.java index 0eb8135e1..a8cb69de3 100644 --- a/omod-2.2/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs2_2/PasswordResetController2_2Test.java +++ b/omod-2.2/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs2_2/PasswordResetController2_2Test.java @@ -70,7 +70,7 @@ public void requestPasswordReset_shouldCreateUserActivationKeyGivenEmail() throw } @Test - public void requestPasswordReset_shouldCreateUserActivationKeyGivenEmailForAnyUser() throws Exception { + public void requestPasswordReset_shouldCreateUserActivationKeyWhenUnauthenticatedWithValidEmail() throws Exception { User user = setUpUser("butch"); user.setEmail("butch@gmail.com"); assertNull(dao.getLoginCredential(user).getActivationKey()); @@ -87,7 +87,7 @@ public void requestPasswordReset_shouldCreateUserActivationKeyGivenEmailForAnyUs } @Test - public void requestPasswordReset_shouldCreateUserActivationKeyGivenUsernameForAnyUser() throws Exception { + public void requestPasswordReset_shouldCreateUserActivationKeyWhenUnauthenticatedWithValidUsername() throws Exception { User user = setUpUser("butch"); assertNull(dao.getLoginCredential(user).getActivationKey()); assertNotNull(user.getUsername());