124.Spring Boot Rest Controller Junit Testing

preview_player
Показать описание
In this video you will learn how to write JUnit test cases for
Spring Boot Rest Controller using Mokito.
Below is the GitHub link to download source:
Рекомендации по теме
Комментарии
Автор

Great tutorial... Thank you and please include junit testcase for update method as well

suhailahmed
Автор

great tutorial man, really worked for me.Thanks

hetalpadia
Автор

Thank you very much . You made me understand very easily

srinusrinivas
Автор

My program is giviing me null pointer exceptin for DAO layer. As we havent introduced dao layer in test case it should not go in that flow. Please assist me why it is giving null pointer exception for DAO layer

akashjagtap
Автор

It's a really very nice one. It helps me a lot. I am using Swagger Apiary. From the Yaml file, I am generating the Controller Interface. I have created a Controller class and this Controller class implements to the Controller Interface(where all API Endpoints are mentioned). In this case how to write JUnit test cases?

tw
Автор

Hi, thank you for helping us with this tutorial, how we can write junit for scanner class which takes an input as interger?? Will u be able to help?

aswinikumarparida
Автор

On post method I am getting wanted but not invoked error

rajeshshinde
Автор

Can you please let me know the value you are setting like passenger name, source station.. Etc.. Are they input parameter or output parameters

chinu
Автор

UNDER testCreateTicket(), what's Ticket? which class is Ticket?

nehapalnullRA
Автор

What is dependency need to add for junit?

Chandrasekhar-zjxl
Автор

i got compile time exception in mapToJson

lakshmit
Автор

great tutorial, but don't just show already written code, that makes no sense. It's better to write code.

solocodex