Master Java Unit Testing with Spring Boot and Mockito
506 students enrolled
Updated in May 2025. This course now features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. In this course, you will embark on a journey to master unit testing using Mockito and Spring Boot. Starting with an introduction to Mockito, you'll learn how to set up your projects using Spring Initializr and write your first unit tests. As you progress, you'll delve deeper into creating business services, utilizing stubs, and updating tests to use Mockito effectively. The course meticulously guides you through various unit testing scenarios, including setting up business services to call data services, writing unit tests with stubs, and mocking using Mockito. You'll explore advanced techniques such as refactoring with @Mock, @InjectMocks, and @RunWith(MockitoJUnitRunner), and learn valuable tips for argument matchers, verify method calls, and argument capture. In the final sections, the focus shifts to integrating Mockito with Spring Boot. You'll create and test RESTful services, work with data layers using JPA and Hibernate, and perform integration tests with @SpringBootTest. Each module is designed to build on the previous one, ensuring a seamless and comprehensive learning experience. This course is ideal for Java developers with a basic understanding of Spring Boot who are looking to enhance their unit testing capabilities. A fundamental knowledge of Java and familiarity with basic Spring Boot concepts are prerequisites.
CERTIFICATEKatılım Sertifikası
FORMAT100% Online
DURATIONSelf-paced
What you'll learn
Unit Testing
JUnit
Integration Testing
Restful API
Development Testing
Software Testing
Test Tools
Web Services
Hibernate (Java)
Business Logic
Details
ProviderPackt
TypeCourse
CategorySoftware & Programming
LanguageEnglish
Öğrenenlerimiz ne diyor?
Türkiye'nin yüz akı üniversitelerince hazırlanan; akademik doyuruculuğa sahip eğitim içeriklerinin, etkileşimli videolarla bir araya getirildiği bir üniversiteden eğitim almak istiyorsanız doğru yerdesiniz.
Ramazan Bölükbaşı
Çok yoğun programı olan öğrenciler için büyük bir fırsat. Bir şeylerin gelişmesi değişmesi için çabalamalıyız.
Melis Gülsar
Hızlı desteği ve üst düzey hizmeti ile Campus Online ve Sosyal Medya Sertifika Programı hizmeti sağlayan Adnan Menderes Üniversitesine sonsuz teşekkürlerimi sunuyorum.