
Download JDK 11 for Windows and run the installer. The video guides accessing oracle.com, selecting the Windows download, and completing the JDK 11 installation.
Review the business requirements, use case diagram, and system roles administrator, instructor, and student for the Java Corner Admin backend, and map wireframes and UML class diagram to the database.
Clarifies business requirements and designs a back-end dashboard with courses, instructors, and students modules, secured by admin, instructor, and student roles via Spring, JWT, and an Angular front end.
Create a UML class diagram for an online courses site, modeling course, instructor, student, user and role, with many-to-many enrollments and an association class linking courses and students.
Learn to unit test the instructor service in Spring Boot with JUnit and Mockito, covering load by id, find by name, load by email, and create instructor with mocks.
Execute unit tests for the role service implementation by injecting a mock for the role dao with the Mockito extension. Verify load roll by name and create roll interactions.
Develop and validate the user service through unit tests, using mocks for the user DAO, testing load by email, create user, and assign roles to user.
Develop and implement unit tests for the student service implementation with mockito, covering load by id, not found exception, find by name, and load by email.
Complete the unit testing for the student service by validating create, update, find all, and remove operations, with mocks for user service and integration with test containers.
Reuse the same MySQL container for all integration tests by enabling test containers reuse, speeding runs, and confirming a successful test connection to the database.
Spring Boot :
Is the most popular framework for building enterprise Java applications. Spring Boot includes testing support to develop unit tests and integration tests using JUnit, Mockito and MockMvc. By developing tests, you can create applications with better code design, fewer bugs, and higher reliability. This course shows you how to take full advantage of Spring Boot's testing support.
JUnit :
Develop JUnit Tests
Set up projects to use JUnit
Apply JUnit assertions: Equals/Not Equals and Null/NotNull
Apply JUnit assertions: Same/Not Same and True/False
Leverage JUnit lifecycle annotations
Define custom display names for JUnit tests
Check for exceptions and timeouts
Define execution order in JUnit tests
Perform code coverage analysis for JUnit tests
Apply conditionals with JUnit tests
Test Driven Development (TDD) :
Apply Test Driven Development for build tests and application code.
Create a failing test first.
Update your code to make the tests pass.
Take your tests from RED to GREEN.
Apply TDD to a coding project.
Leverage parameterized tests with TDD.
Mocking with Mockito :
Identify the need for mocking during test development
Leverage Mockito in JUnit tests
Applying the @MockBean annotation for injection
Throwing exceptions with Mocks
Database Integration Testing :
Identify the need for database integration testing during test development
Add database setup and clean code using @BeforeEach and @AfterEach
Leverage an embedded database to ease with testing setup and maintenance.