Move the repository south to match AllTypesTest.

This commit is contained in:
Michael Bayne
2010-06-19 17:52:52 +00:00
parent 978bf81acb
commit f4cc4f2bee
@@ -157,23 +157,6 @@ public class TransformTest extends TestBase
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 ()
throws NoSuchFieldException
{
@@ -243,6 +226,23 @@ public class TransformTest extends TestBase
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
// clean up after ourselves in every test; thus we go ahead and share a repository
protected TransformRepository _repo = new TransformRepository(createPersistenceContext());