Master Unit Testing Java Spring Boot REST API Application in One Shot | Full Course

Let's become expert of unit testing java spring boot rest api application using Junit , AssertJ , Mockito , H2Database , Springframework test package libraries / frameworks. This is a full one shot course on software unit testing java spring boot applications. In this tutorial, Cloud Vendor API is further evolved and junit test cases are written for all 3 layers i.e. controller layer , service layer and repository layer. All layers are unit tested using junit, assertj, mockito, h2database and springframework test package . Code coverage method is also demonstrated in this session. Software testing expected from java developers is explained here.
Unit Testing is mandatory task to perform in java projects from every Java developer. Unit testing java projects helps to enhance java code quality and prevents java spring boot application from bugs. This tutorial will be helpful for backend developers and also for full stack developers.
Some notes -
JUNIT -
Unit testing framework for Java and its frameworks.
JUnit 5 is the next generation of JUnit.
The goal is to create an up-to-date foundation for developer-side testing on the JVM. This includes focusing on Java 8 and above, as well as enabling many different styles of testing.
AssertJ -
AssertJ is a Java library that provides a rich set of assertions and truly helpful error messages.
It improves test code readability, and is designed to be super easy to use within your favorite IDE.
Mockito -
Mockito is a mocking framework for Java.
It lets you write beautiful tests with a clean & simple API.
The tests are very readable and they produce clean verification errors.
Mockito 3.x requires Java 8 or above.
H2 Database -
H2 Database is Java SQL Database
Very fast and open source
Used as In-Memory Database
Spring Boot can auto-configure embedded H2 databases.
Key Annotations -
@SpringBootApplication
@Test
@DataJpaTest
@WebMvcTest
@Mock
@MockBean
@Autowired
@BeforeEach
@AfterEach
and more...
Spring Boot Session Links are given below -
1st session - • Java REST API with Spr...
2nd session - • Creating Java REST API...
3rd Session - • Exception Handling in ...
4th Session - • Java Spring Boot REST ...
Playlist for Spring Boot How To tutorial is -
• Spring Boot REST API C...
GitHub link for CloudVendorApi code -
github.com/thinkconstructive/...
Pls subscribe to the channel -
/ @thinkconstructive
Follow me on -
Official Website: thinkconstructive.com/
@Twitter : / tconstructive
@LinkedIn : / eshapuri
@LinkedIn : / think-constructive
Support the channel with your Amazon purchase -
Atomic Habits - amzn.to/3yEzGU5
The Courage To Be Disliked - amzn.to/3wheVMz
Disclosure, I use affiliate Amazon links above. Purchasing through these links gives me a small commission -- the price to you is the same.
#thinkconstructive #eshapuri #junit #junit5 #springboot
Chapters
00:00:00 Welcome
00:01:33 What is Unit Testing and Importance of Unit Testing
00:02:11 Java Spring Boot Project Design Overview
00:04:39 What is Junit ?
00:06:13 What is AssertJ ?
00:08:20 What is Mockito ?
00:09:26 What is H2 Database ?
00:11:17 Cloud Vendor API Software Project Overview
00:13:02 JUNIT Test Package Structure
00:13:50 Maven Dependency in pom.xml inclusion and verification
00:18:41 test/java/resources/application.yaml or test/java/resources/application.properties file content and structure
00:21:54 Repository Layer Test Cases : Java Spring Boot REST API
00:44:23 Service Layer Test Cases : Java Spring Boot REST API
01:09:54 Code Coverage using Intellij for Java REST API Repository Layer and Service Layer
01:12:59 Controller Layer Test Cases : Java Spring Boot REST API
01:36:32 Code Coverage using Intellij for Java REST API Controller Layer
01:39:00 Summary
01:40:25 Thank You
Queries
how to write unit test in java spring boot
how to write unit test in java spring boot rest
what is junit5 library
what is assertj library
what is mockito library
how to use h2database
what is spring boot test
how to write test case in java spring boot
how to test controller layer code
how to test service layer code
how to test repository layer code
how to check code coverage
how to check code coverage of java spring boot application
how to verify code coverage of java project
how to run junit test

Пікірлер: 143

  • @ThinkConstructive
    @ThinkConstructive Жыл бұрын

    This is a FULL Course for Unit Testing Spring Boot REST API application using JUNIT5, AssertJ, Mockito, H2Database and Spring test frameworks. All 3 layers will be unit tested for CloudVendorAPI application and code coverage will also be demonstrated. This is a fully practical demonstration, hence, you will get to learn real time coding and explanation both together in this session. This session addresses the REAL PAIN point of Java Spring Boot developers i.e. writing Unit Test Cases. Please attend the full session to get complete benefit from this course. Happy Learning 😊 Cheers, Esha

  • @DeepakLalchandaniProfile

    @DeepakLalchandaniProfile

    Жыл бұрын

    Brilliant mam, but which book would you recommend that you have used for video.

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Thanks. Please visit spring.io/

  • @jasper5016

    @jasper5016

    4 ай бұрын

    Thanks so much Esha. I really liked your style of teaching. Can you please cover more interesting topics such as how to ship Spirngboot app as Docker image to AWS ECS or Fargate etc.

  • @ThinkConstructive

    @ThinkConstructive

    4 ай бұрын

    Thank you 😊 Please stay connected and share with others too. Sure, will plan sessions on this

  • @souravpal2436

    @souravpal2436

    2 ай бұрын

    Great ma'am. But recent I pull this latest code but it's not working. Please check it

  • @user-en2tn2fu6i
    @user-en2tn2fu6i3 ай бұрын

    i watch many videos on youtube .but dont find video content like your.tx so much provide such a good content

  • @professionalyoutubevideowa37
    @professionalyoutubevideowa376 ай бұрын

    This is the best course on Spring Unit testing. Concise and straight to the point!!

  • @ThinkConstructive

    @ThinkConstructive

    6 ай бұрын

    Glad you liked it 😊 Thanks a lot ❤️ Please stay connected and share with others too 😊

  • @donotdisturb1934
    @donotdisturb1934 Жыл бұрын

    i have no words to describe how much i love the way you explained this, you made it so simple and easy to follow and understand that even as a beginner with no idea about unit testing and your previous cloud vendor project, i was able to understand and connect as to how this would be correlated to my project.

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    I am extremely happy to know that the tutorial helped you 😊 Thanks for sharing it here ❤️ Stay connected and share with others too 😊

  • @rushabhshah392
    @rushabhshah3927 ай бұрын

    Good content.. Thank you. Glad to see that one like helped the video also reached to 1K.

  • @saranr1467
    @saranr14673 ай бұрын

    Very clear and concise content , thanks for the effort in creating this video

  • @rabinotieno6553
    @rabinotieno65536 ай бұрын

    you are the best i have learnt alot from your course

  • @ParthPuri
    @ParthPuri Жыл бұрын

    Extremely helpful full of knowledge … loads of details are shared and code is very useful…thanks a ton for sharing this …

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Welcome 😊 Glad that it helped.

  • @mithleshpuri
    @mithleshpuri Жыл бұрын

    Awesome content. Great to learn spring boot from your sessions. Thanku 🙏

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Glad you like them! Welcome 😊

  • @oLunatiko
    @oLunatiko Жыл бұрын

    Great video, thank you for sharing!

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Welcome 😊 Glad that you liked it. Please share session with more people.

  • @mithleshpuri
    @mithleshpuri Жыл бұрын

    Brilliant video. Keep teaching us. Thank you 🙏

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Thanks, will do 😊 Please share session with more people.

  • @mukesh76801
    @mukesh768015 ай бұрын

    Thanks for this video. This is best junit testing video I ever found.

  • @ThinkConstructive

    @ThinkConstructive

    4 ай бұрын

    Thank you so much 😊😊 Please stay connected and share with others too.

  • @giang08t3
    @giang08t3 Жыл бұрын

    Thank you so much for the very useful course!

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Most Welcome 😊 Stay connected and please share with others too. Thanks 😊

  • @rajeshpamuri9760
    @rajeshpamuri97605 ай бұрын

    Mam never seen like this tutorial From KZread

  • @ahmedouyahya
    @ahmedouyahya Жыл бұрын

    Hats off. Really Awesome content. Thank you so much. You got one subscriber here.

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Welcome to Think Constructive. Glad to hear this 😊 Thank you. Stay connected and keep sharing with others too.

  • @dias6475
    @dias64756 ай бұрын

    Thank you, Esha, for this fantastic content!

  • @ThinkConstructive

    @ThinkConstructive

    4 ай бұрын

    Thank you so much ❤️ Please stay connected and share with others too.

  • @msdinfo2871
    @msdinfo28716 ай бұрын

    Thank you so much for such an amazing teaching!

  • @ThinkConstructive

    @ThinkConstructive

    6 ай бұрын

    Thanks, it means a lot ❤️❤️ Please stay connected and share with others too 😊

  • @pronoob4775
    @pronoob47754 ай бұрын

    Best Unit Testing Video on KZread, Thank you

  • @ThinkConstructive

    @ThinkConstructive

    4 ай бұрын

    Thank you 😊😊 Please stay connected and share with others too.

  • @sibashankarsahu2055
    @sibashankarsahu205511 ай бұрын

    great content and great effort. Really appreciate.

  • @ThinkConstructive

    @ThinkConstructive

    11 ай бұрын

    Thanks 😊 Stay connected and please share with others too, thanks 😊

  • @santoshrajuutube
    @santoshrajuutube Жыл бұрын

    Thank you so much Mam, for your time and patience.

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Thanks 😊

  • @trinitykhuman
    @trinitykhuman16 күн бұрын

    Very very helpful. Thank you !!!

  • @ThinkConstructive

    @ThinkConstructive

    15 күн бұрын

    Glad it was helpful . Stay connected and please share with others too

  • @AlessiaCaraFans
    @AlessiaCaraFans Жыл бұрын

    omg you just saved my life thank youuuu so muuuuuuch

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Glad that it was helpful 😊 Please share with other too. Thanks 😊

  • @otifelix
    @otifelix Жыл бұрын

    Thank you so much for the content really great.

  • @ThinkConstructive

    @ThinkConstructive

    11 ай бұрын

    Most welcome 😊 Stay connected and please share with others too. Thank you 😊

  • @uvanana.
    @uvanana.2 ай бұрын

    Everything is working fine for me

  • @leonardofukuje5171
    @leonardofukuje5171 Жыл бұрын

    Thank you!

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Welcome 😊

  • @sgr7ss
    @sgr7ssАй бұрын

    Good explanation

  • @jayjoshi1366
    @jayjoshi13664 ай бұрын

    The explanation of each test case is awesome. I was searching for the same bundle of all test cases with JUnit 5, including all CRUD operations. It could have been more helpful than it is already, if the methods like andDo(), andExpect(), explanation of the ObjectMapper code block for mapping cloudVendor obj to Json stirng was taken deeply. But still much appreciated for you efforts and learned a lot from this session. Thanks a lot ma'am!

  • @ThinkConstructive

    @ThinkConstructive

    4 ай бұрын

    Glad it helped you ❤️ Sure will plan sessions on suggested methods. Please stay connected and share with others too. Thank you 😊

  • @MsProtestante
    @MsProtestante9 ай бұрын

    Very good lady! Thank you!

  • @ThinkConstructive

    @ThinkConstructive

    9 ай бұрын

    Thanks 😊 Stay connected and please share with others too. Thank you

  • @bharathkalyans
    @bharathkalyans6 ай бұрын

    Thanks that was really helpful.

  • @ThinkConstructive

    @ThinkConstructive

    6 ай бұрын

    Glad you liked it 😊 Please stay connected and share with others too. Thanks 😊

  • @atharvsingh6901
    @atharvsingh690110 ай бұрын

    I really appreciate your crucial efforts for the benefit of java coding community. My respect 🙏 to you mam. You are our GURUMA

  • @ThinkConstructive

    @ThinkConstructive

    10 ай бұрын

    Thank you so much for your kind words, respect ❤️ ❤️ Stay connected and please share with others too 😊

  • @atharvsingh6901

    @atharvsingh6901

    10 ай бұрын

    @@ThinkConstructive surely mam, I'll. These informative 👏 contents are useful for learning and growing in job. Pls continue the great work. You may not have idea, how much helpful these are. Otherwise, to learn such things, we have to pay thousands of rupees that not everybody can afford. Money shouldn't be a barrier to education. And ur efforts 👌 💪 are proving it. 🙏😊

  • @ThinkConstructive

    @ThinkConstructive

    10 ай бұрын

    Thank you so much for your kind words 😊 ❤️ Keep learning, keep growing

  • @boxofgames3
    @boxofgames3 Жыл бұрын

    superb explanation mam, keep teaching us

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Thanks 😊 Sure, I will

  • @kartikmerotha136
    @kartikmerotha136 Жыл бұрын

    I was looking for this video from long time... You clear all doubts..

  • @ThinkConstructive

    @ThinkConstructive

    11 ай бұрын

    Nice, Thanks 😊 Stay connected and please share with others too, thanks 😊

  • @kartikmerotha136

    @kartikmerotha136

    11 ай бұрын

    @ThinkConstructive yeah sure I already share with another one😊😊

  • @ThinkConstructive

    @ThinkConstructive

    11 ай бұрын

    Great thanks 😊

  • @vishnupriyapeta2162

    @vishnupriyapeta2162

    5 ай бұрын

    Hi Esha Mam, can you able to externalize the application properties in json config and provide annotations explaining this flow in ur upcoming videos! Kudos to your effort🎉

  • @user-lw2jn8gp3e
    @user-lw2jn8gp3e11 ай бұрын

    Awesome session 🌹

  • @ThinkConstructive

    @ThinkConstructive

    10 ай бұрын

    Thank you so much 😊 Stay connected and please share with others too.

  • @londonuk648
    @londonuk6487 ай бұрын

    You are amazing.

  • @ThinkConstructive

    @ThinkConstructive

    6 ай бұрын

    Thanks a lot ❤️ ❤️ Please stay connected and share with others too 😊

  • @user-xb1pu1tj7e
    @user-xb1pu1tj7e5 ай бұрын

    Thank u for sharing thes excellent course, i just have a question, i waanna know the difference between MockBean and Mock annotation why we used mockbean to mock the service why we didnt use mock

  • @blessycheriyan5870
    @blessycheriyan5870 Жыл бұрын

    Very informative videos and tremendous experiences

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Thanks 😊

  • @blessycheriyan5870

    @blessycheriyan5870

    Жыл бұрын

    @@ThinkConstructive waiting for more videos related to spring boot

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Sure, will upload soon

  • @sagarprasad3204
    @sagarprasad3204 Жыл бұрын

    Thank for unit test case video.. if you get chance please prepare video for integration test using spring boot, cucumber and docker as postgres db.

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Welcome 😊 Sure will include it in the plan by

  • @tittuc1480
    @tittuc1480 Жыл бұрын

    Videos are very helpful for tech buddies , Could you please upload Evosuite using autogenerated test cases in STS?

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Thanks 😊. I will check and plan

  • @nikhilbalthi9133
    @nikhilbalthi91339 ай бұрын

    Thank you

  • @ThinkConstructive

    @ThinkConstructive

    8 ай бұрын

    Welcome 😊 Stay connected and please share with others too. Thanks 😊

  • @rahulbasutkar04
    @rahulbasutkar04Ай бұрын

    Thank you mam

  • @ThinkConstructive

    @ThinkConstructive

    Ай бұрын

    Most welcome 😊 Please share with others too

  • @krishnaprasad-rn6pp
    @krishnaprasad-rn6pp Жыл бұрын

    Good work. keep it up. Can please post videos on highcharts or chartJs

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Thanks 😊 Currently JS videos are not in the plan! Sorry

  • @DushmantaKSahu
    @DushmantaKSahu7 ай бұрын

    nice

  • @daisyday101
    @daisyday1014 ай бұрын

    Hello Ma'am, what is the exact difference between junit and mockito ? and how can we decide whether we should go for mockito or junit before writing test cases?

  • @priteshsingh299
    @priteshsingh299 Жыл бұрын

    Hello Mam, instead of mocking Entity and repository class in every test method can we mock it once above?

  • @godfreyogbeide2340
    @godfreyogbeide2340 Жыл бұрын

    GOOD MORNING MA, YOU ARE REALLY DOING A GOOD JOB. I WANT TO ASK YOU A QUESTION? IS IT POSSIBLE TO CREATE A REST APPLICATION SPRING BOOT USING A GRADLE PROJECT PLEASE!!

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Good Morning, Thank you 😊 Yes, Spring Boot REST Application can be build using GRADLE build.

  • @rameshs8282
    @rameshs82824 ай бұрын

    Can someone tell me, In real time projects will do mocking junit test in all three layers like controller, service and repository or only one in service layer will test junit mockito?

  • @user-ve1jp5ho1k
    @user-ve1jp5ho1k8 ай бұрын

    Hi Mam. Ur Explanation is very good. In real time, Can I take above test cases for reference, And can i use in any real time project.

  • @ThinkConstructive

    @ThinkConstructive

    8 ай бұрын

    Hello, Thank you so much 😊 Yes, definitely, you can use these test cases and tutorial as a reference for any real time project. Stay connected and please share with others too 😊

  • @syedirfan4541
    @syedirfan45415 ай бұрын

    Mam make a video on adding swagger in ur project

  • @user-ui8fi3gl1c
    @user-ui8fi3gl1c11 ай бұрын

    Hi mam , All the process are working .But Code coverge does details does not showing me.totally it's showing empty. what is the problem mam.

  • @user-pz4ix9sp3h
    @user-pz4ix9sp3h3 ай бұрын

    Why inside the test methods such as testCreateVendor mock(CloudVendor.class); mock(CloudVendorRepository.class); Is this being used because even without these the test cases are passing

  • @avanishsingh5630
    @avanishsingh56306 ай бұрын

    Mam you covered simple test cases like find by id method , getAll method but what if a method call external service like there is a method called CreateVehichle() this method internally calls a fabservcie.readData for better under standing i am pasting some code snipite CreateVehicle(VehiclcleRegistation vr){ externaldata= externalService.readData} and in externalService readData there is one more service called can you please tell me how can i write testcase for CreateVehichle() method and also provide some good resources for Junit

  • @RochaNahuel
    @RochaNahuel Жыл бұрын

    GENIA FROM ARGENTINA

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Welcome 😊 Stay connected

  • @dubeyankitsarar8084
    @dubeyankitsarar8084 Жыл бұрын

    Mam please make a video on microservices.plz

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Sure, will plan it shortly.

  • @tittuc1480

    @tittuc1480

    Жыл бұрын

    Waiting for more videos in microservices 🥳

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Sure, will plan it.

  • @dadasahebgadhe2083
    @dadasahebgadhe2083 Жыл бұрын

    I use @async annotation with two methods in a same service class, asynchronous calling happen but not getting any response

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Please try including wait timer in the test case

  • @kartikmerotha136
    @kartikmerotha136 Жыл бұрын

    Could you please create any project tutorial from scratch to deploy which covers all features of microservices.

  • @ThinkConstructive

    @ThinkConstructive

    11 ай бұрын

    Sure

  • @shrip8668
    @shrip86682 ай бұрын

    In service class u have mock repo n again in create cloud vendor u have mock repo i didn't understand that

  • @tittuc1480
    @tittuc1480 Жыл бұрын

    Could you please upload evosuite using generate automatically junit in STS in this weeks?

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Apologies, It’s very difficult to do this on immediate basis. For now, I can include it in my plan.

  • @tittuc1480

    @tittuc1480

    Жыл бұрын

    @@ThinkConstructive thank you for your positive response , Anyway waiting for that video

  • @shubhampatil7336
    @shubhampatil7336 Жыл бұрын

    Please make videos on microservice?

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Sure, will plan it shortly.

  • @snowsior621
    @snowsior62110 ай бұрын

    Good guide, but sad that test cases do not contain case when code throws exception error

  • @ThinkConstructive

    @ThinkConstructive

    10 ай бұрын

    Thanks. Soon, will create another video for exception error test case. Thanks for asking for this scenario.

  • @AkshaliModak
    @AkshaliModak11 ай бұрын

    mam please make videos on design patterns

  • @ThinkConstructive

    @ThinkConstructive

    11 ай бұрын

    Sure

  • @pinkugouda8998
    @pinkugouda8998 Жыл бұрын

    Ma'am thanks for the great video. Can you please share the git lab link

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Welcome 😊 Here is the github link - github.com/thinkconstructive/rest-api-spring-boot-demo/tree/master Stay connected and please share with others too. Thanks 😊

  • @mauriciopareja3899
    @mauriciopareja38996 ай бұрын

    Hello, when found link video project start form beginning ? thanks

  • @ThinkConstructive

    @ThinkConstructive

    6 ай бұрын

    Hi, Please find 1st video link - kzread.info/dash/bejne/m3Z7zaylnpyogNI.html Complete playlist link - kzread.info/head/PLcs1FElCmEu121gqGwlQt47d0SqNkzSTK

  • @mauriciopareja3899

    @mauriciopareja3899

    6 ай бұрын

    @@ThinkConstructive thanks, excellent content !

  • @ashishmahanta7963
    @ashishmahanta7963 Жыл бұрын

    Please add another layer service interface layer

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    I don't think , service interface layer needs to be unit tested!

  • @deepakmathur4218
    @deepakmathur4218 Жыл бұрын

    Hi ma'am, i'm having one doubt i.e. how is this working you jave not created any table for this

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Hi, Table is created In Memory using H2 database for the respective model class, when application comes up.

  • @i.m.mature_guy_
    @i.m.mature_guy_4 ай бұрын

    Can you please share the URL of the git project of this tutorial.

  • @ThinkConstructive

    @ThinkConstructive

    4 ай бұрын

    Sure, here it is - github.com/thinkconstructive/rest-api-spring-boot-demo/tree/master

  • @i.m.mature_guy_

    @i.m.mature_guy_

    4 ай бұрын

    Mam also can you please explain how you have implemented the method in the repository layer findVendorWithName I am only able to see the method definition but not the implementation.

  • @yanrithy7035
    @yanrithy70353 ай бұрын

    54:44

  • @user-lf8ce8zz1o
    @user-lf8ce8zz1o28 күн бұрын

    Hi.....Is H2 database is mandatory to install for testing

  • @tyrantbeast2829

    @tyrantbeast2829

    12 күн бұрын

    No

  • @jayalekshmij7567
    @jayalekshmij7567 Жыл бұрын

    Could you please provide the application.properties file

  • @ThinkConstructive

    @ThinkConstructive

    Жыл бұрын

    Sure, please get it from below link - github.com/thinkconstructive/rest-api-spring-boot-demo/blob/master/src/test/resources/application.properties

  • @SuryaPrakash-qn4bj

    @SuryaPrakash-qn4bj

    3 ай бұрын

    GitHub link is not working,if u have this project source code could you plz share with me

  • @ShanmukRaoSamudrala
    @ShanmukRaoSamudrala2 ай бұрын

    thumbnail 🤡🤡 content 💀💀🔥

  • @NickTheGr3ek
    @NickTheGr3ek Жыл бұрын

    why are we using mock(CloudVendor.class) and mock(CloudVendorRepository.class) ?, since we got the @Mock annotation on the CloudVendorRepository

  • @faclimbo
    @faclimbo Жыл бұрын

    good day, i got error when i tried to run my test case. .hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table cloud_vendor_info (vendor_id varchar(255) not null, vendor_address varchar(255), vendor_name varchar(255), vendor_phone_number varchar(255), primary key (vendor_id)) engine=InnoDB" via JDBC Statement at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67) ~[hibernate-core-6.1.6.Final.jar:6.1.6.Final] at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlString(AbstractSchemaMigrator.java:587) ~[hibernate-core-6.1.6.Final.jar:6.1.6.Final] at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlStrings(AbstractSchemaMigrator.java:532) ~[hibernate-core-6.1.6.Final.jar:6.1.6.Final] at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.createTable(AbstractSchemaMigrator.java:307) ~[hibernate-core-6.1.6.Final.jar:6.1.6.Final]

  • @ambaradhikari7425

    @ambaradhikari7425

    8 ай бұрын

    is your error resolved?

  • @Moonaz023
    @Moonaz02323 күн бұрын

    Thank you so much for such an amazing teaching!

  • @ThinkConstructive

    @ThinkConstructive

    15 күн бұрын

    Thanks a lot. Stay connected and please share with others too