]> source.dussan.org Git - sonarqube.git/commitdiff
Dead code
authorDavid Gageot <david@gageot.net>
Thu, 7 May 2015 16:45:36 +0000 (18:45 +0200)
committerDavid Gageot <david@gageot.net>
Thu, 7 May 2015 16:45:36 +0000 (18:45 +0200)
server/sonar-process/src/test/java/org/sonar/process/StopWatcherTest.java
server/sonar-process/src/test/java/org/sonar/process/StopperThreadTest.java

index 8a6545e581937d3f963ca3177bc4635ab1d881ed..37b929f0588830304008b7bf1a6f8e1aacef4a15 100644 (file)
  */
 package org.sonar.process;
 
-import org.junit.Rule;
 import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
 
 import static org.mockito.Mockito.*;
 
 public class StopWatcherTest {
 
-  @Rule
-  public TemporaryFolder temp = new TemporaryFolder();
-
   @Test(timeout = 1000L)
   public void stop_if_receive_command() throws Exception {
     ProcessCommands commands = mock(ProcessCommands.class);
index 2f6260f9d7857abb898d7d0783d1dd54dfb72a8b..c174b3012afa49c691f0e5d35368471340c89f85 100644 (file)
@@ -19,9 +19,7 @@
  */
 package org.sonar.process;
 
-import org.junit.Rule;
 import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
 import org.mockito.invocation.InvocationOnMock;
 import org.mockito.stubbing.Answer;
 
@@ -29,9 +27,6 @@ import static org.mockito.Mockito.*;
 
 public class StopperThreadTest {
 
-  @Rule
-  public TemporaryFolder temp = new TemporaryFolder();
-
   @Test(timeout = 3000L)
   public void stop_in_a_timely_fashion() throws Exception {
     ProcessCommands commands = mock(ProcessCommands.class);