diff --git a/embedded-db-junit/src/test/java/org/zapodot/junit/db/EmbeddedDatabaseRuleSql2oTest.java b/embedded-db-junit/src/test/java/org/zapodot/junit/db/EmbeddedDatabaseRuleSql2oTest.java
index 685a2592..fda9d3a1 100644
--- a/embedded-db-junit/src/test/java/org/zapodot/junit/db/EmbeddedDatabaseRuleSql2oTest.java
+++ b/embedded-db-junit/src/test/java/org/zapodot/junit/db/EmbeddedDatabaseRuleSql2oTest.java
@@ -9,17 +9,6 @@
public class EmbeddedDatabaseRuleSql2oTest {
- public static class Element {
- public final Long id;
-
- public final String name;
-
- public Element(final Long id, final String name) {
- this.id = id;
- this.name = name;
- }
- }
-
@Rule
public final EmbeddedDatabaseRule databaseRule = EmbeddedDatabaseRule
.builder()
@@ -28,7 +17,7 @@ public Element(final Long id, final String name) {
.build();
@Test
- public void testUsingSql2oWithTransaction() throws Exception {
+ public void testUsingSql2oWithTransaction() {
final Sql2o sql2o = new Sql2o(databaseRule.getDataSource());
final String elementName = "element illegalSqlFromResource";
try (final Connection transaction = sql2o.beginTransaction()) {
@@ -41,9 +30,9 @@ public void testUsingSql2oWithTransaction() throws Exception {
transaction.commit();
}
try (final Connection read = sql2o.open()) {
- final Element element = read
+ final TestElement element = read
.createQuery("SELECT * from ELEMENT")
- .executeAndFetch(Element.class)
+ .executeAndFetch(TestElement.class)
.iterator()
.next();
assertEquals(1L, element.id.longValue());
diff --git a/embedded-db-junit/src/test/java/org/zapodot/junit/db/TestElement.java b/embedded-db-junit/src/test/java/org/zapodot/junit/db/TestElement.java
new file mode 100644
index 00000000..1922ed54
--- /dev/null
+++ b/embedded-db-junit/src/test/java/org/zapodot/junit/db/TestElement.java
@@ -0,0 +1,8 @@
+package org.zapodot.junit.db;
+
+public class TestElement {
+ public Long id;
+
+ public String name;
+
+}
diff --git a/pom.xml b/pom.xml
index 21ea804e..c203a5f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,7 +39,7 @@
0.7.19
2.0.13
6.1.11
- 1.6.0
+ 1.8.0
2.2
2.8.0