Interview Questions

What Is JUnit?

JUnit Questions and Answers

What Is JUnit?

What is JUnit? You need to remember the following points when answering this question:

  • It is a software testing framework to for unit testing.
  • It is written in Java and designed to test Java applications.
  • It is an Open Source Software maintained by the community.

Answer from the JUnit FAQ:

JUnit is a simple, open source framework to write and run repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. JUnit features include:

  • Assertions for testing expected results
  • Test fixtures for sharing common test data
  • Test runners for running tests

JUnit was originally written by Erich Gamma and Kent Beck.

(Continued on next question...)

Other Interview Questions