Closed hprange closed 13 years ago
Instead of:
MyEntity savedEntity = mockEditingContext.createSavedObject(MyEntity.class);
we could declare a field annotated with @Dummy:
@Dummy private MyEntity savedEntity;
and the MockEditingContext rule creates the saved object automagically.
Instead of:
MyEntity savedEntity = mockEditingContext.createSavedObject(MyEntity.class);
we could declare a field annotated with @Dummy:
@Dummy private MyEntity savedEntity;
and the MockEditingContext rule creates the saved object automagically.