Java Basics Practice Test: JUnit — Flashcards | Java Programming | FatSkills

Java Basics Practice Test: JUnit — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

JUnit is a unit testing framework for the Java programming language. It is used to write and run automated tests. JUnit is an open-source framework that is compatible with almost all IDEs.
JUnit tests are typically written as classes that extend the JUnit TestCase class. Each test method is annotated with the @Test annotation. When a test method is executed, JUnit will assert that the expected result is equal to the actual result. If the assertion fails, JUnit will throw an exception.
JUnit tests can be run from the command line or from within an IDE.

1 of 10 Ready
JUnits are used for which type of testing?
Unit Testing
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password