Skip to content

Commit

Permalink
remove test case function name
Browse files Browse the repository at this point in the history
Signed-off-by: mengleang-ngoun <[email protected]>
  • Loading branch information
mengleang-0090 committed Jan 18, 2024
1 parent 082609f commit ef41c8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void doGenerateChallenge_allValid_thenPass() throws SignUpException {
}

@Test
public void doGenerateChallenge_withUnsupportedChallengeType_thenPass() throws SignUpException {
public void doGenerateChallenge_withUnsupportedChallengeType_thenFail() throws SignUpException {
RegistrationTransaction transaction = new RegistrationTransaction("+85577410541", Purpose.REGISTRATION);
ReflectionTestUtils.setField(challengeManagerService, "supportedGenerateChallengeType", "TELEGRAM");
try{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
Expand Down Expand Up @@ -533,7 +532,7 @@ public void doVerifyChallenge_withInvalidFormatForOTPChallenge_thenFail() {
}

@Test
public void doVerifyChallengeInResetPassword_thenIdentityInactive_throwException() {
public void doVerifyChallengeInResetPassword_withInactiveIdentity_throwException() {

ChallengeInfo challengeInfoKBA = new ChallengeInfo();
challengeInfoKBA.setFormat("base64url-encoded-json");
Expand Down Expand Up @@ -643,7 +642,7 @@ public void doVerifyChallengeInResetPassword_withKBAChallengeNotFound_throwExcep
}

@Test
public void doVerifyChallengeInResetPassword_thenFetchIdentityFailed_throwException() {
public void doVerifyChallengeInResetPassword_whenFetchIdentityFail_throwException() {

ChallengeInfo challengeInfoKBA = new ChallengeInfo();
challengeInfoKBA.setFormat("base64url-encoded-json");
Expand Down Expand Up @@ -867,7 +866,7 @@ public void register_thenUinEndpointResponseNullBody_throwException() throws Exc
}

@Test
public void register_thenUinEndpointResponseNullUIN_throwException() throws Exception{
public void register_whenUinEndpointResponseNullUIN_throwException() throws Exception{
UserInfoMap userInfo = new UserInfoMap();
userInfo.setPreferredLang("khm");
userInfo.setFullName(List.of(new LanguageTaggedValue("eng", "Panharith AN")));
Expand Down Expand Up @@ -1090,7 +1089,7 @@ public void register_thenGenerateHashEndpointResponseErrors_throwException() thr
}

@Test
public void register_thenGenerateHashEndpointResponseNullErrors_throwException() throws Exception{
public void register_whenGenerateHashEndpointResponseNullErrors_throwException() throws Exception{
UserInfoMap userInfo = new UserInfoMap();
userInfo.setPreferredLang("khm");
userInfo.setFullName(List.of(new LanguageTaggedValue("eng", "Panharith AN")));
Expand Down Expand Up @@ -1141,7 +1140,7 @@ public void register_thenGenerateHashEndpointResponseNullErrors_throwException()
}

@Test
public void register_thenGenerateHashEndpointResponseNullSaltedPassword_throwException() throws Exception{
public void register_whenGenerateHashEndpointResponseNullSaltedPassword_throwException() throws Exception{
UserInfoMap userInfo = new UserInfoMap();
userInfo.setPreferredLang("khm");
userInfo.setFullName(List.of(new LanguageTaggedValue("eng", "Panharith AN")));
Expand Down Expand Up @@ -1195,7 +1194,7 @@ public void register_thenGenerateHashEndpointResponseNullSaltedPassword_throwExc
}

@Test
public void register_thenGenerateHashEndpointResponseNullSalted_throwException() throws Exception{
public void register_whenGenerateHashEndpointResponseNullSalted_throwException() throws Exception{
UserInfoMap userInfo = new UserInfoMap();
userInfo.setPreferredLang("khm");
userInfo.setFullName(List.of(new LanguageTaggedValue("eng", "Panharith AN")));
Expand Down Expand Up @@ -1308,7 +1307,7 @@ public void register_thenAddIdentityEndpointResponseNullBody_throwException() th
}

@Test
public void register_thenAddIdentityEndpointResponseStatusNotEqualsACTIVATED_throwException() throws Exception{
public void register_whenAddIdentityEndpointResponseStatusNotEqualsACTIVATED_throwException() throws Exception{
UserInfoMap userInfo = new UserInfoMap();
userInfo.setPreferredLang("khm");
userInfo.setFullName(List.of(new LanguageTaggedValue("eng", "Panharith AN")));
Expand Down Expand Up @@ -1369,7 +1368,7 @@ public void register_thenAddIdentityEndpointResponseStatusNotEqualsACTIVATED_thr
}

@Test
public void register_thenAddIdentityEndpointResponseErrors_throwException() throws Exception {
public void register_whenAddIdentityEndpointResponseErrors_throwException() throws Exception {
UserInfoMap userInfo = new UserInfoMap();
userInfo.setPreferredLang("khm");
userInfo.setFullName(List.of(new LanguageTaggedValue("eng", "Panharith AN")));
Expand Down Expand Up @@ -1432,7 +1431,7 @@ public void register_thenAddIdentityEndpointResponseErrors_throwException() thro
}

@Test
public void register_thenAddIdentityEndpointResponseNullErrors_throwException() throws Exception{
public void register_whenAddIdentityEndpointResponseNullErrors_throwException() throws Exception{
UserInfoMap userInfo = new UserInfoMap();
userInfo.setPreferredLang("khm");
userInfo.setFullName(List.of(new LanguageTaggedValue("eng", "Panharith AN")));
Expand Down

0 comments on commit ef41c8e

Please sign in to comment.