@Test void testCreateTokenSystem() { JobExecution jobExecution = mock(JobExecution.class); assertTrue( jobExecutorTokenServiceImpl.createToken(jobExecution) instanceof SystemSecurityToken); }
@Override public AbstractAuthenticationToken createToken(JobExecution jobExecution) { return jobExecution .getUser() .map(this::createRunAsUsertoken) .orElseGet(SystemSecurityToken::getInstance); }
JobExecutorTokenServiceImpl implements JobExecutorTokenService { @Override public AbstractAuthenticationToken createToken(JobExecution jobExecution) { return jobExecution .getUser() .map(this::createRunAsUsertoken) .orElseGet(SystemSecurityToken::getInstance); } }
JobExecutorTokenServiceImpl implements JobExecutorTokenService { @Override public AbstractAuthenticationToken createToken(JobExecution jobExecution) { return jobExecution .getUser() .map(this::createRunAsUsertoken) .orElseGet(SystemSecurityToken::getInstance); } JobExecutorTokenServiceImpl(
      UserDetailsServiceImpl userDetailsServiceImpl, RunAsUserTokenFactory runAsUserTokenFactory); }
JobExecutorTokenServiceImpl implements JobExecutorTokenService { @Override public AbstractAuthenticationToken createToken(JobExecution jobExecution) { return jobExecution .getUser() .map(this::createRunAsUsertoken) .orElseGet(SystemSecurityToken::getInstance); } JobExecutorTokenServiceImpl(
      UserDetailsServiceImpl userDetailsServiceImpl, RunAsUserTokenFactory runAsUserTokenFactory); @Override AbstractAuthenticationToken createToken(JobExecution jobExecution); }
JobExecutorTokenServiceImpl implements JobExecutorTokenService { @Override public AbstractAuthenticationToken createToken(JobExecution jobExecution) { return jobExecution .getUser() .map(this::createRunAsUsertoken) .orElseGet(SystemSecurityToken::getInstance); } JobExecutorTokenServiceImpl(
      UserDetailsServiceImpl userDetailsServiceImpl, RunAsUserTokenFactory runAsUserTokenFactory); @Override AbstractAuthenticationToken createToken(JobExecution jobExecution);  }