diff --git a/resident/resident-service/src/test/java/io/mosip/resident/validator/RequestValidatorTest.java b/resident/resident-service/src/test/java/io/mosip/resident/validator/RequestValidatorTest.java index 68c4e3d7558..66a6c27c4d6 100644 --- a/resident/resident-service/src/test/java/io/mosip/resident/validator/RequestValidatorTest.java +++ b/resident/resident-service/src/test/java/io/mosip/resident/validator/RequestValidatorTest.java @@ -1410,11 +1410,11 @@ public void testValidateAuthLockRequestV2NegativeUnlockForSeconds() throws Excep requestWrapper.setVersion("1.0"); requestWrapper.setRequest(authLockOrUnLockRequestDtoV2); try { - requestValidator.validateAuthLockOrUnlockRequestV2(requestWrapper); - } catch (BaseResidentUncheckedExceptionWithMetadata e) { - assertEquals(e.getErrorCode(),ResidentErrorCode.UNSUPPORTED_INPUT.getErrorCode()); - return; - } + requestValidator.validateAuthLockOrUnlockRequestV2(requestWrapper); + } catch (BaseResidentUncheckedExceptionWithMetadata e) { + assertEquals(e.getErrorCode(),ResidentErrorCode.UNSUPPORTED_INPUT.getErrorCode()); + return; + } fail(); } @@ -3205,10 +3205,10 @@ public void testValidateAuthLockOrUnlockRequestV2FailedUnlockSeconds() throws Ex requestWrapper.setRequest(authLockOrUnLockRequestDtoV2); try { requestValidator.validateAuthLockOrUnlockRequestV2(requestWrapper); - } catch (BaseResidentUncheckedExceptionWithMetadata e) { - assertEquals(e.getErrorCode(),ResidentErrorCode.UNSUPPORTED_INPUT.getErrorCode()); - return; - } + } catch (BaseResidentUncheckedExceptionWithMetadata e) { + assertEquals(e.getErrorCode(),ResidentErrorCode.UNSUPPORTED_INPUT.getErrorCode()); + return; + } fail(); } -} +} \ No newline at end of file