@Test void testCreateLocaleSystem() { Locale locale = Locale.getDefault(); JobExecution jobExecution = mock(JobExecution.class); assertEquals(locale, jobExecutorLocaleServiceImpl.createLocale(jobExecution)); }
@Override public Locale createLocale(JobExecution jobExecution) { return jobExecution .getUser() .map(userLocaleResolver::resolveLocale) .orElseGet(Locale::getDefault); }
JobExecutorLocaleServiceImpl implements JobExecutorLocaleService { @Override public Locale createLocale(JobExecution jobExecution) { return jobExecution .getUser() .map(userLocaleResolver::resolveLocale) .orElseGet(Locale::getDefault); } }
JobExecutorLocaleServiceImpl implements JobExecutorLocaleService { @Override public Locale createLocale(JobExecution jobExecution) { return jobExecution .getUser() .map(userLocaleResolver::resolveLocale) .orElseGet(Locale::getDefault); } JobExecutorLocaleServiceImpl(UserLocaleResolver userLocaleResolver); }
JobExecutorLocaleServiceImpl implements JobExecutorLocaleService { @Override public Locale createLocale(JobExecution jobExecution) { return jobExecution .getUser() .map(userLocaleResolver::resolveLocale) .orElseGet(Locale::getDefault); } JobExecutorLocaleServiceImpl(UserLocaleResolver userLocaleResolver); @Override Locale createLocale(JobExecution jobExecution); }
JobExecutorLocaleServiceImpl implements JobExecutorLocaleService { @Override public Locale createLocale(JobExecution jobExecution) { return jobExecution .getUser() .map(userLocaleResolver::resolveLocale) .orElseGet(Locale::getDefault); } JobExecutorLocaleServiceImpl(UserLocaleResolver userLocaleResolver); @Override Locale createLocale(JobExecution jobExecution);  }