@Test public void testPrepareForAbort() { int result = trace.prepareForAbort(1L, context); assertThat(result, is(Trace.PREPARED | Trace.READONLY)); verify(context).checkPoint("prepareForAbort:XXXtestXXX"); }
public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; }
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; } }
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; }  }
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; }  int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForAbort(long id, Serializable o); void setConfiguration(Configuration cfg); }
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; }  int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForAbort(long id, Serializable o); void setConfiguration(Configuration cfg);  }