@Test public void testExitTwoLastEntriesWithCustomContext() { String contextName = "context-rpc"; ContextUtil.enter(contextName); Context context = ContextUtil.getContext(); try { CtEntry entry1 = new CtEntry(new StringResourceWrapper("resA", EntryType.IN), null, context); entry1.exit(); assertEquals(context, ContextUtil.getContext()); CtEntry entry2 = new CtEntry(new StringResourceWrapper("resB", EntryType.IN), null, context); entry2.exit(); assertEquals(context, ContextUtil.getContext()); } finally { ContextUtil.exit(); assertNull(ContextUtil.getContext()); } }
@Override public void exit(int count, Object... args) throws ErrorEntryFreeException { trueExit(count, args); }
CtEntry extends Entry { @Override public void exit(int count, Object... args) throws ErrorEntryFreeException { trueExit(count, args); } }
CtEntry extends Entry { @Override public void exit(int count, Object... args) throws ErrorEntryFreeException { trueExit(count, args); } CtEntry(ResourceWrapper resourceWrapper, ProcessorSlot<Object> chain, Context context); }
CtEntry extends Entry { @Override public void exit(int count, Object... args) throws ErrorEntryFreeException { trueExit(count, args); } CtEntry(ResourceWrapper resourceWrapper, ProcessorSlot<Object> chain, Context context); @Override void exit(int count, Object... args); @Override Node getLastNode(); }
CtEntry extends Entry { @Override public void exit(int count, Object... args) throws ErrorEntryFreeException { trueExit(count, args); } CtEntry(ResourceWrapper resourceWrapper, ProcessorSlot<Object> chain, Context context); @Override void exit(int count, Object... args); @Override Node getLastNode();  }