Move the repository south to match AllTypesTest.
This commit is contained in:
@@ -157,23 +157,6 @@ public class TransformTest extends TestBase
|
|||||||
public InvalidCustomType invalid;
|
public InvalidCustomType invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class TransformRepository extends DepotRepository
|
|
||||||
{
|
|
||||||
public TransformRepository (PersistenceContext ctx) {
|
|
||||||
super(ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
public TransformRecord loadNoCache (int recordId)
|
|
||||||
{
|
|
||||||
return load(TransformRecord.getKey(recordId), CacheStrategy.NONE);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override // from DepotRepository
|
|
||||||
protected void getManagedRecords (Set<Class<? extends PersistentRecord>> classes) {
|
|
||||||
classes.add(TransformRecord.class);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test public void testValidAnnotations ()
|
@Test public void testValidAnnotations ()
|
||||||
throws NoSuchFieldException
|
throws NoSuchFieldException
|
||||||
{
|
{
|
||||||
@@ -243,6 +226,23 @@ public class TransformTest extends TestBase
|
|||||||
throw new IllegalArgumentException(eclass + " has no value with code " + code);
|
throw new IllegalArgumentException(eclass + " has no value with code " + code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static class TransformRepository extends DepotRepository
|
||||||
|
{
|
||||||
|
public TransformRepository (PersistenceContext ctx) {
|
||||||
|
super(ctx);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransformRecord loadNoCache (int recordId)
|
||||||
|
{
|
||||||
|
return load(TransformRecord.getKey(recordId), CacheStrategy.NONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override // from DepotRepository
|
||||||
|
protected void getManagedRecords (Set<Class<? extends PersistentRecord>> classes) {
|
||||||
|
classes.add(TransformRecord.class);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// the HSQL in-memory database persists for the lifetime of the VM, which means we have to
|
// the HSQL in-memory database persists for the lifetime of the VM, which means we have to
|
||||||
// clean up after ourselves in every test; thus we go ahead and share a repository
|
// clean up after ourselves in every test; thus we go ahead and share a repository
|
||||||
protected TransformRepository _repo = new TransformRepository(createPersistenceContext());
|
protected TransformRepository _repo = new TransformRepository(createPersistenceContext());
|
||||||
|
|||||||
Reference in New Issue
Block a user