@Test void initializeThread() { Thread thread = this.threadsProvider.initializeThread(mock(Runnable.class)); assertNotNull(thread); assertEquals("Mentions thread", thread.getName()); assertTrue(thread.getPriority() < NORM_PRIORITY, "The thread must have a priority lower than the default."); }
@Override public Thread initializeThread(Runnable runnable) { Thread thread = new Thread(runnable); thread.setName(THREAD_NAME); thread.setPriority(NORM_PRIORITY - 1); return thread; }
DefaultMentionsThreadsProvider implements MentionsThreadsProvider { @Override public Thread initializeThread(Runnable runnable) { Thread thread = new Thread(runnable); thread.setName(THREAD_NAME); thread.setPriority(NORM_PRIORITY - 1); return thread; } }
DefaultMentionsThreadsProvider implements MentionsThreadsProvider { @Override public Thread initializeThread(Runnable runnable) { Thread thread = new Thread(runnable); thread.setName(THREAD_NAME); thread.setPriority(NORM_PRIORITY - 1); return thread; }  }
DefaultMentionsThreadsProvider implements MentionsThreadsProvider { @Override public Thread initializeThread(Runnable runnable) { Thread thread = new Thread(runnable); thread.setName(THREAD_NAME); thread.setPriority(NORM_PRIORITY - 1); return thread; }  @Override Thread initializeThread(Runnable runnable); }
DefaultMentionsThreadsProvider implements MentionsThreadsProvider { @Override public Thread initializeThread(Runnable runnable) { Thread thread = new Thread(runnable); thread.setName(THREAD_NAME); thread.setPriority(NORM_PRIORITY - 1); return thread; }  @Override Thread initializeThread(Runnable runnable);  }