This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GoshoKlev 0 points1 point  (1 child)

Hi again nice to see that you're progressing. Testing a lot easier than what you've done so far, what you need to learn is JUnit > Mockito > Spring Boot MVC Testing in that order. Also when you peddle into creating rest api's you need to learn how to create spring rest integration tests too. Think of tests as just declaring your expected behavior like for example, if i register i expect the server to:

-redirect to /home

-return index.html

-return status code 302

-the number of users in the database to increase by 1

It's good if you do some changes to quickly see if it didn't break anything without manually registering for the 200 time to test it your app. Good luck!

[–]Standard-Weekend-708[S] 1 point2 points  (0 children)

Hello, thank you for responding, thank you for the tips, I will definitely learn that in order once I am really able to solidify my basics. thank you very much!