@Test public void testGetXID() { RootContext.bind(DEFAULT_XID); assertThat(RootContext.getXID()).isEqualTo(DEFAULT_XID); assertThat(RootContext.unbind()).isEqualTo(DEFAULT_XID); assertThat(RootContext.getXID()).isNull(); }
public static String getXID() { return CONTEXT_HOLDER.get(KEY_XID); }
RootContext { public static String getXID() { return CONTEXT_HOLDER.get(KEY_XID); } }
RootContext { public static String getXID() { return CONTEXT_HOLDER.get(KEY_XID); }  }
RootContext { public static String getXID() { return CONTEXT_HOLDER.get(KEY_XID); }  static String getXID(); static void bind(String xid); static void bindGlobalLockFlag(); static String unbind(); static void unbindGlobalLockFlag(); static boolean inGlobalTransaction(); static boolean requireGlobalLock(); static void assertNotInGlobalTransaction(); }
RootContext { public static String getXID() { return CONTEXT_HOLDER.get(KEY_XID); }  static String getXID(); static void bind(String xid); static void bindGlobalLockFlag(); static String unbind(); static void unbindGlobalLockFlag(); static boolean inGlobalTransaction(); static boolean requireGlobalLock(); static void assertNotInGlobalTransaction(); static final String KEY_XID; static final String KEY_GLOBAL_LOCK_FLAG; }