diff --git a/src/main/java/de/idrinth/stellaris/modtools/persistence/entity/Modification.java b/src/main/java/de/idrinth/stellaris/modtools/persistence/entity/Modification.java index b04abc8..cf9ae64 100644 --- a/src/main/java/de/idrinth/stellaris/modtools/persistence/entity/Modification.java +++ b/src/main/java/de/idrinth/stellaris/modtools/persistence/entity/Modification.java @@ -22,7 +22,6 @@ import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; -import javax.persistence.JoinColumn; import javax.persistence.ManyToMany; import javax.persistence.OneToMany; import javax.persistence.NamedQueries; diff --git a/src/test/java/de/idrinth/stellaris/modtools/persistence/entity/CollidingTest.java b/src/test/java/de/idrinth/stellaris/modtools/persistence/entity/CollidingTest.java index 37f2a97..4c672c1 100644 --- a/src/test/java/de/idrinth/stellaris/modtools/persistence/entity/CollidingTest.java +++ b/src/test/java/de/idrinth/stellaris/modtools/persistence/entity/CollidingTest.java @@ -37,18 +37,18 @@ public void testModification() { } /** - * Test of setModifications method, of class Colliding. + * Test of setModifications+getModifications method, of class Colliding. */ @Test - public void testSetModifications() { + public void testModifications() { System.out.println("modifications"); Colliding instance = (Colliding) get(); Set set = new HashSet<>(); set.add(new Modification()); - junit.framework.Assert.assertNotNull("there was no modification set pre-set", instance.getModifications()); - junit.framework.Assert.assertFalse("modification sets were equal?", set.equals(instance.getModifications())); + Assert.assertNotNull("there was no modification set pre-set", instance.getModifications()); + Assert.assertFalse("modification sets were equal?", set.equals(instance.getModifications())); instance.setModifications(set); - junit.framework.Assert.assertTrue("modification sets were inequal", set.equals(instance.getModifications())); + Assert.assertTrue("modification sets were inequal", set.equals(instance.getModifications())); } @Override