Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to create and use unit tests in Java with JUnit in this comprehensive tutorial. Discover the importance of unit testing for verifying code correctness and gain confidence in your Java programming. Follow along as the instructor demonstrates the process of creating simple and complex unit tests, utilizing IntelliJ's testing tools for efficient test creation and execution. Explore various testing scenarios, including edge cases, and learn how to use assertions and test for exceptions. Gain valuable insights into best practices for unit testing and improve your overall Java development skills through practical examples and expert guidance.
Syllabus
Intro
What is Unit Testing
Creating Unit Tests
Creating a Simple Test
Creating a More Complex Test
Creating a Greater Test
Creating a Test Method
Testing with Coverage
More Unit Tests
Test Scenario Example
Test Edge Cases
Changing Edge Cases
Unit Test Example
assertthrows
Conclusion
Taught by
Coding with John