-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit tests for Blind SQL Injection Vulnerability levels 1, 2, and 3 #474
Add unit tests for Blind SQL Injection Vulnerability levels 1, 2, and 3 #474
Conversation
@imertetsu there are a few checkstyle errors. please run |
Hi @preetkaran20 I'm having this issue when trying to execute the command I've also added this configuration to idea64.exe.vmoptions file, but I'm using Java8, so I shouldn't have that restriction |
@imertetsu try |
I tried fixing it. Let's see if it succeeds |
@preetkaran20 I'm using Java 8, let me know if it's correct, please. And why does the check still fail if you fixed it? 🤔 |
I used java 22 and i think that is why it failed. |
I have used Oracle java 8 locally and ran spotless apply and it worked. |
Alright! it worked for me as well! :) Now I'm able to run the command |
@imertetsu Thanks a lot for the PR !!! Great work !!! |
This PR adds unit tests for the Blind SQL Injection Vulnerability for levels 1, 2, and 3 in the
BlindSQLInjectionVulnerability
class. The tests mock theJdbcTemplate
andResultSet
to simulate SQL queries and responses.Changes:
getCarInformationLevel1()
:getCarInformationLevel2()
:getCarInformationLevel3()
:Tests:
All tests passed successfully.
Resolves: #392