Unit Testing: An Introduction to the JUnit Framework

placeholder

JUnit an open-source unit testing framework can be used by Java developers who employ a test-driven development methodology. The platform allows you to write and run tests on sections of code repeatedly. Use this course as a quick theoretical and hands-on introduction to the JUnit framework. Begin by looking at the process of software testing in general then unit-testing with JUnit in particular. Next move on to writing a simple Java app for which you will write JUnit test cases to ensure that its functions behave in line with expectations. Moving along learn how to use annotations to mark out methods as test cases and set up work to be carried out before test case executions and tasks to be performed after they have run. When youre done youll be able to get started writing unit tests for your code using the JUnit framework.