fix broken unit test. Illegal table 'ROLES'

The ROLES table exists by default in some datbases.
So it's probably better to not use it as table name in our unit test.
This commit is contained in:
Mark Struberg 2019-02-02 13:49:27 +01:00
parent 11863ed932
commit 6e8c4d987f
2 changed files with 67 additions and 66 deletions

View File

@ -28,7 +28,7 @@ import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "roles")
@Table(name = "rolesx")
public class Role {
@Id

View File

@ -35,8 +35,9 @@ public class TestOutOfBoundsEx extends SingleEMFTestCase {
@Override
public void setUp() throws Exception {
super.setUp(Lookup.class, Case.class, Role.class, ScheduledAssignment.class, ScheduleDay.class,
DROP_TABLES);
super.setUp(DROP_TABLES, Lookup.class, Case.class, Role.class,
ScheduledAssignment.class, ScheduleDay.class,
"openjpa.Log", "SQL=Trace");
em = emf.createEntityManager();
insertLookups();
}