JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. You need to have a JDK installed and a text editor. (In general it is recommended to use a build tool for building your software and running the tests.). 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. JUnit is Open Source Software, released under the Eclipse Public License Version 1.0. JUnit celebrates programmers testing their own software. In this spirit, bugs, patches, and feature requests that include JUnit tests have a better chance of being addressed than those without.

Features

  • JUnit 4 allows you to write repeatable tests
  • Run the test from the command line. On Linux, MacOS, or Windows
  • JUnit tells you which test failed (evaluatesExpression(CalculatorTest)) and what went wrong
  • Modify Calculator.java in order to get a failing test
  • The Java compiler creates a file Calculator.class

Project Samples

Project Activity

See All Activity >

Follow JUnit 4

JUnit 4 Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JUnit 4!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Java

Related Categories

Java Software Testing Tool, Java Frameworks

Registered

2021-07-14