diff --git a/pom.xml b/pom.xml
index 3688725..5c52c56 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,14 @@
io.dropwizard
dropwizard-bom
- ${project.version}
+ 2.1.12
+ pom
+ import
+
+
+ io.dropwizard
+ dropwizard-dependencies
+ 2.1.12
pom
import
@@ -119,7 +126,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 2.19.1
+ 3.2.5
org.apache.maven.plugins
@@ -134,7 +141,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.6.0
+ 3.13.0
org.apache.maven.plugins
@@ -149,7 +156,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 2.4.3
+ 3.6.0
org.apache.maven.plugins
@@ -216,6 +223,7 @@
META-INF/*.SF
META-INF/*.DSA
META-INF/*.RSA
+ module-info.class
@@ -239,8 +247,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 1.6
- 1.6
+ 11
diff --git a/src/main/java/com/dropwizard/employee/EmployeeConfiguration.java b/src/main/java/com/dropwizard/employee/EmployeeConfiguration.java
index 9a8e28f..f16b57d 100644
--- a/src/main/java/com/dropwizard/employee/EmployeeConfiguration.java
+++ b/src/main/java/com/dropwizard/employee/EmployeeConfiguration.java
@@ -3,7 +3,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import io.dropwizard.db.DataSourceFactory;
-import org.hibernate.validator.constraints.NotEmpty;
+import javax.validation.constraints.NotEmpty;
import com.dropwizard.employee.core.Template;
import javax.validation.Valid;
diff --git a/src/main/java/com/dropwizard/employee/db/EmployeeDAO.java b/src/main/java/com/dropwizard/employee/db/EmployeeDAO.java
index 203bdc2..8695ca5 100644
--- a/src/main/java/com/dropwizard/employee/db/EmployeeDAO.java
+++ b/src/main/java/com/dropwizard/employee/db/EmployeeDAO.java
@@ -21,7 +21,8 @@ public Employee create(Employee person) {
return persist(person);
}
+ @SuppressWarnings("unchecked")
public List findAll() {
- return list(namedQuery("com.dropwizard.employee.core.Employee.findAll"));
+ return list((org.hibernate.query.Query) namedQuery("com.dropwizard.employee.core.Employee.findAll"));
}
}
diff --git a/src/test/java/com/dropwizard/employee/AppTest.java b/src/test/java/com/dropwizard/employee/AppTest.java
index ac98328..d6d3aad 100644
--- a/src/test/java/com/dropwizard/employee/AppTest.java
+++ b/src/test/java/com/dropwizard/employee/AppTest.java
@@ -1,38 +1,18 @@
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 );
- }
+public class AppTest {
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ @Test
+ public void testApp() {
+ assertTrue(true);
}
}