From d2493cea8283a85afdd0afb4c3ccb5b08197f185 Mon Sep 17 00:00:00 2001
From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Thu, 23 Apr 2026 17:50:20 +0000
Subject: [PATCH] Migrate AppTest from JUnit 3 to JUnit 5 (Jupiter)
- Replace JUnit 3 TestCase-based test with JUnit 5 Jupiter annotations
- Remove TestCase inheritance, constructor, and suite() method
- Use @Test annotation and static Assertions import
- Add junit-jupiter 5.10.0 dependency to pom.xml
Co-Authored-By: Wes Convery <2wconvery@gmail.com>
---
pom.xml | 6 +++
.../java/com/dropwizard/employee/AppTest.java | 38 +++----------------
2 files changed, 12 insertions(+), 32 deletions(-)
diff --git a/pom.xml b/pom.xml
index 3688725..c7532f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -101,6 +101,12 @@
+
+ org.junit.jupiter
+ junit-jupiter
+ 5.10.0
+ test
+
diff --git a/src/test/java/com/dropwizard/employee/AppTest.java b/src/test/java/com/dropwizard/employee/AppTest.java
index ac98328..e374075 100644
--- a/src/test/java/com/dropwizard/employee/AppTest.java
+++ b/src/test/java/com/dropwizard/employee/AppTest.java
@@ -1,38 +1,12 @@
package com.dropwizard.employee;
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
-/**
- * Unit test for simple App.
- */
-public class AppTest
- extends TestCase
-{
- /**
- * Create the test case
- *
- * @param testName name of the test case
- */
- public AppTest( String testName )
- {
- super( testName );
- }
-
- /**
- * @return the suite of tests being tested
- */
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
- }
+class AppTest {
- /**
- * Rigourous Test :-)
- */
- public void testApp()
- {
- assertTrue( true );
+ @Test
+ void testApp() {
+ assertTrue(true);
}
}