JUnit 5 Testing Framework

Overview

Qualified supports writing tests for Groovy using JUnit 5.

Quick Start

class Adder {
  static def add(a, b) { a + b }
}
import static org.junit.jupiter.api.Assertions.assertEquals

import org.junit.jupiter.api.Test

class AdderTests {
  @Test
  void "1 + 1 = 2"() {
    assertEquals(2, Adder.add(1, 1), "1 + 1 should equal 2")
  }
}

Learn More

You can learn more on the JUnit website.