test: add JUnit 5 harness

This commit is contained in:
marcos
2026-08-05 14:51:28 +00:00
parent 2d867cefca
commit be1f31778a
2 changed files with 49 additions and 0 deletions
@@ -0,0 +1,18 @@
package dev.marcospaulo.canalhandia;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Guards the test harness itself. The rest of the suite is written test-first, so
* a silently broken harness (surefire not discovering JUnit 5, wrong JDK) would
* read as "all tests pass" instead of "no tests ran". This one is here to fail loudly.
*/
class SanityTest {
@Test
void harnessRuns() {
assertEquals(2, 1 + 1);
}
}