Why are Unit Tests a vital point in any Java project
How to write meaningful Unit Tests in Java
Unit Tests – Tips
What practices should be avoided when writing unit tests
Requirements
Basic Java and Spring Boot knowledge needed.
Injection mechanism in Spring Boot
Description
This course presents a way to start with Unit Tests in Java. The examples that I’m providing are inside a Spring Boot App. I think this adds value for you when it comes to getting a clearer picture of Unit Tests in an actual environment that is used by thousands if not millions of apps.
I think that it’s important for you to understand that these are my opinions when it comes to unit testing. I’m sure that there are many advice out there which are better than mine. What I’m trying to present here is how I see the Unit Tests after a couple of years of professional experience with them. I try to discuss about different topics that I learned about in the most basic ways.
This course comes up with answers about what are Unit Tests and why it’s good to have them. It also has a practical part, in which I present you some code samples of unit testing. In the end, I mention some tips that helped me along the way, and then I enumerate bad practices that I’m trying to avoid.
I hope from the bottom of my heart that this course will help you!
Who this course is for:
This course is recommended to all Java developers who want to learn or improve their Java Unit Testing skills.
Course content
6 sections • 15 lectures • 41m total lengthExpand all sections
Course introduction1 lecture • 1min
Course introduction00:37
Introduction to Java Unit Tests3 lectures • 5min
What is a unit test?00:53
Why create and use unit tests?02:40
Unit tests – mandatory or optional?01:00
Coding part: Write meaningful Unit Tests5 lectures • 36min
Create a Spring Boot App that has two endpoints05:48
Which classes are we going to unit test and why?04:21
Unit tests for the Controller class – addNewCar()10:59
Unit tests for the Controller class – getAllCars()06:32
Unit tests for the Service class – Code coverage07:52
Learn to create a fully functioning Java Spring Boot Microservice from start to finish with code included.
You will also see how services connect in a Microservice solutions and learn many gotchas to watch for.
Java 8 programming language
Spring Boot 2.7
IntelliJ Ultimate
Maven 3
Mac OSX 11.7
ChatGPT API – Open AI
Professional skills and experience from a Java Architect with over 20 years experience from startups to fortune 100 companies.
Learn the fundamentals but also tips and tricks of the experts. Learn about the different type of API end points and how to create a full end to end solution.
We will walk thru the project setup and all required elements to create a full end to end API server.
Content and Overview
This course explains key technology concepts of API’s with REST and JSON technology in a Java system. We show development from start to finish to include deployment on a live production server not just a test machine.
What am I going to get from this course?
Detailed knowledge of how to create Java based REST/JSON API’s
Learn how to setup a Maven project in Eclipse
Learn how to integrate into the ChatGPT Open AI API.
Teaching by example, several hands on examples showing every detail to the smallest degree from starting a new application to deploying it in production.
Access to Instructors GitHub account with many extras and examples.
If you don’t have a production server device don’t worry, we show you how to test everything on your local computer.
Note: Development is all described on a Mac OSX notebook, Windows is not address. Java is a portable language and all the tools described in this class are available on Java as well but no intention is made to describe how to setup them up of use the Windows versions.