@Test @WithMockUser void cleanupAfterRunJobCallingThreadId() { JobUtils.cleanupAfterRunJob(Thread.currentThread().getId()); assertNotNull(SecurityContextHolder.getContext().getAuthentication()); }
public static void cleanupAfterRunJob(long callingThreadId) { if (Thread.currentThread().getId() == callingThreadId) { return; } SecurityContextHolder.clearContext(); LocaleContextHolder.resetLocaleContext(); }
JobUtils { public static void cleanupAfterRunJob(long callingThreadId) { if (Thread.currentThread().getId() == callingThreadId) { return; } SecurityContextHolder.clearContext(); LocaleContextHolder.resetLocaleContext(); } }
JobUtils { public static void cleanupAfterRunJob(long callingThreadId) { if (Thread.currentThread().getId() == callingThreadId) { return; } SecurityContextHolder.clearContext(); LocaleContextHolder.resetLocaleContext(); } private  JobUtils(); }
JobUtils { public static void cleanupAfterRunJob(long callingThreadId) { if (Thread.currentThread().getId() == callingThreadId) { return; } SecurityContextHolder.clearContext(); LocaleContextHolder.resetLocaleContext(); } private  JobUtils(); static void cleanupAfterRunJob(long callingThreadId); }
JobUtils { public static void cleanupAfterRunJob(long callingThreadId) { if (Thread.currentThread().getId() == callingThreadId) { return; } SecurityContextHolder.clearContext(); LocaleContextHolder.resetLocaleContext(); } private  JobUtils(); static void cleanupAfterRunJob(long callingThreadId);  }