All About xUnit
JUnit
JUnit is the most popular tool
on the planet for testing Java code.
In the mid-90s Kent Beck and Erich Gamma produced JUnit to
make it easy to write and run tests. Since then, similar frameworks have sprung up for almost
all languages. These are called xUnit frameworks, where x is the name of the language.JUnit 5.x is the current Java xUnit framework.on the planet for testing Java code.
In the pages ahead, you’ll learn enough about JUnit’s fundamentals to write
and execute hundreds of tests.
(Reading...)
Formatting Hints:
To format... | use this markup: |
---|---|
source code | {source:lang=java|lineNumbers=false}...{source} (Supported languages: java, cpp, csharp, c, python.) |
bold text | __some text__ |
italicized text | ~~some text~~ |
underlined text | @@some text@@ |
a method or class name | ``myMethod(...)`` |