Тёмный

Mockito with Maven and Spring - Tutorial on Mocking Autowired Dependencies 

Подписаться
Просмотров 14 тыс.
% 78

► LEARN "Big Picture" of FULL-STACK, CLOUD, AWS, MICROSERVICES with DOCKER and KUBERNETES in ***30 MINUTES*** - links.in28minutes.com/in28min-JAP-YT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Join Our Free Courses
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► FREE 5 DAY CHALLENGE - Learn Spring and Spring Boot - links.in28minutes.com/yt-free-sbt-learning-challenge
► Learn Spring Boot in 10 Steps - links.in28minutes.com/yt-free-sbt
► Learn Docker in 10 Steps - app.rebrandly.com/links/5d3a1007e0ec4041ae7fc1a183804992
► Download Presentation and Notes - courses.in28minutes.com/p/in28minutes-course-guide
► All Spring Boot Articles - www.springboottutorial.com/spring-boot-projects-with-code-examples
LEARN "Big Picture" of FULL-STACK, CLOUD, AWS, MICROSERVICES with DOCKER and KUBERNETES in ***30 MINUTES*** - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ysoC8S96pZU.html
Follow Ranga on LinkedIn - www.linkedin.com/posts/rangakaranam_thank-you-keep-learning-every-day-our-activity-6687560624949485569-1Wic
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Our Top 10 Courses
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30+ Courses. 500,000+ Learners. Amazing Reviews.
► 1. Master DEVOPS with Docker, Kubernetes and Azure DevOps - links.in28minutes.com/DevOps-SBT
► 2. Become FULL STACK DEVELOPER with SPRING BOOT and REACT - links.in28minutes.com/in28minutes-React
► 3. Master MICROSERVICES with Spring Boot and Spring Cloud - links.in28minutes.com/in28minutes-Microservices
► 4. Become AWS CERTIFIED Solution Architect - links.in28minutes.com/aws-architect-associate-certification
► 5. Learn SPRING in 100 Steps - links.in28minutes.com/in28minutes-Spring
► 6. JAVA PROGRAMMING for Complete Beginners in 250 Steps - links.in28minutes.com/in28minutes-java
► 7. Go FULL STACK DEVELOPER with Spring Boot and Angular - links.in28minutes.com/in28minutes-angular
► 8. Master Java Unit Testing with Spring Boot & Mockito - links.in28minutes.com/in28minutes-spring-testing
► 9. Spring INTERVIEW GUIDE - links.in28minutes.com/in28minutes-spring-interview
► 10. Java INTERVIEW GUIDE - links.in28minutes.com/in28minutes-java-interview
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FREE Courses For You
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► 01. Learn Full Stack, AWS, Cloud, and Microservices - ru-vid.com/group/PLBBog2r6uMCTM_CKntPT-GIMR2-4d55Un
► 02. Learn Spring and Spring Boot in 5 DAYS - links.in28minutes.com/5-day-spring-spring-boot
► 03. AWS Certified Solutions Architect Associate - links.in28minutes.com/sbt-teachable-aws-solution-architect
► 04. Getting Started with DevOps and Cloud - links.in28minutes.com/5-day-spring-spring-boot
► 05. Learn Docker in 10 Steps - links.in28minutes.com/in28minutes-10steps-docker
► 06. Learn Kubernetes in 10 Steps - links.in28minutes.com/in28minutes-10steps-k8s
► 07. Learn AWS in 10 Steps - links.in28minutes.com/in28minutes-10steps-aws-beanstalk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Other Recommendations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► MOST WATCHED VIDEOS - ru-vid.com/group/PLBBog2r6uMCQhZaQ9vUT5zJWXzz-f49k1
► 25+ PLAYLISTS - ru-vid.complaylists?view=1&sort=lad&flow=list
Mockito with Maven and Spring. Real world Example with Spring.
Not very different from previous example.
Github : github.com/in28minutes/MockitoTutorialForBeginners
in28Minutes Course Guide - courses.in28minutes.com/p/in28minutes-course-guide

Опубликовано:

 

6 сен 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@raginirani1520
@raginirani1520 3 года назад
your video are helpful. one thing that helped me was first explain the basic concept and then explain how can we used in real world scenario. i would recommend you to please make one or two video how we can use this in real world scenario.
@hyperborean72
@hyperborean72 6 лет назад
Until now in just 4 videos we used: when(mock method).thenReturn(value/object) given(mock method).willReturn(Value/object) stub(mock method).toReturn(value/object) they all seem to be doing the same Am I wrong? How to choose among them? May be stub.willReturn specifically for objects?
@shubhamchopra5518
@shubhamchopra5518 3 года назад
Both when() and stub() are same, its just stub is deprecated ,when() is a successor of deprecated stub(Object).
@IssabekovR
@IssabekovR 5 лет назад
That was a great tutorial, thank you!
@steveerossa
@steveerossa 7 лет назад
What if Mocked Autowired fields themselves have field dependencies in their own classes?. Do we inject mocks into the the mocks? Example what if we needed to inject some field into the productDao we are mocking into ClientBO?
@MrArchitgoel0877
@MrArchitgoel0877 6 лет назад
is there any difference between below two lines? stub(cpproxy.getBinList()).toReturn(gettestbins()); when(cpproxy.getBinList()).thenReturn(gettestbins()); If not, why do we use them interchangeably?
@mattanderson6672
@mattanderson6672 4 года назад
Great tutorial, but yellow warning labels covered content
@chanduujjina978
@chanduujjina978 6 лет назад
How to mock DataSourceconfig which contains JNDI Look Up
@ganeshparida1780
@ganeshparida1780 5 лет назад
what use of @rule.?
@ShampooWow
@ShampooWow 8 лет назад
Nice video! I like it
@ajaycsenit
@ajaycsenit 5 лет назад
Good explanation :)
@SuryaprakashNS
@SuryaprakashNS 5 лет назад
08:02
@sonicboy1995
@sonicboy1995 4 года назад
MAN IM LOSING MY SHIT NOW
@alamnr906
@alamnr906 5 лет назад
East or West , Ranga Rao Karanam is best
@studyonline3236
@studyonline3236 3 года назад
8:01 so you are a Telugu guy
@isaaclozanolopez9435
@isaaclozanolopez9435 2 года назад
that's a bad tutorial
@АлександърВълчев-х2т
Basic concepts in tutorials should be simplified and explained step by step, not with a complete example where people dont know whats going on!This tutorial is pointless
@NKATIKADALAVIDYASRI
@NKATIKADALAVIDYASRI 3 года назад
If he not explained with a complete example, then his video also same as others.. If you don't understand, that means you are pointless..