aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-04-27 16:48:46 +0200
committerDavid Gageot <david@gageot.net>2012-04-27 16:49:03 +0200
commit9e1a2abf9da026c059442381b84b45d0712b7258 (patch)
tree17d60faee4187ea3e60db13df015a8f718ee7508 /sonar-duplications
parentbd90fa7d3ec17f825cac80eebd46cf1ee0412ee9 (diff)
downloadsonarqube-9e1a2abf9da026c059442381b84b45d0712b7258.tar.gz
sonarqube-9e1a2abf9da026c059442381b84b45d0712b7258.zip
Code cleaning : Remove indirect access to static member
Diffstat (limited to 'sonar-duplications')
-rw-r--r--sonar-duplications/src/test/java/org/sonar/duplications/statement/StatementChannelTest.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/sonar-duplications/src/test/java/org/sonar/duplications/statement/StatementChannelTest.java b/sonar-duplications/src/test/java/org/sonar/duplications/statement/StatementChannelTest.java
index 29b4c6e091d..cdb2eae7dd0 100644
--- a/sonar-duplications/src/test/java/org/sonar/duplications/statement/StatementChannelTest.java
+++ b/sonar-duplications/src/test/java/org/sonar/duplications/statement/StatementChannelTest.java
@@ -26,12 +26,13 @@ import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
+import org.mockito.Matchers;
+
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
import org.sonar.duplications.statement.matcher.AnyTokenMatcher;
import org.sonar.duplications.statement.matcher.TokenMatcher;
import org.sonar.duplications.token.Token;
@@ -58,7 +59,7 @@ public class StatementChannelTest {
assertThat(channel.consume(tokenQueue, output), is(false));
ArgumentCaptor<List> matchedTokenList = ArgumentCaptor.forClass(List.class);
- verify(matcher).matchToken(Mockito.eq(tokenQueue), matchedTokenList.capture());
+ verify(matcher).matchToken(Matchers.eq(tokenQueue), matchedTokenList.capture());
verifyNoMoreInteractions(matcher);
verify(tokenQueue).pushForward(matchedTokenList.getValue());
verifyNoMoreInteractions(tokenQueue);
@@ -74,7 +75,7 @@ public class StatementChannelTest {
List<Statement> output = mock(List.class);
assertThat(channel.consume(tokenQueue, output), is(true));
- verify(matcher).matchToken(Mockito.eq(tokenQueue), Mockito.anyList());
+ verify(matcher).matchToken(Matchers.eq(tokenQueue), Matchers.anyList());
verifyNoMoreInteractions(matcher);
ArgumentCaptor<Statement> statement = ArgumentCaptor.forClass(Statement.class);
verify(output).add(statement.capture());
@@ -92,9 +93,9 @@ public class StatementChannelTest {
List<Statement> output = mock(List.class);
assertThat(channel.consume(tokenQueue, output), is(true));
- verify(matcher).matchToken(Mockito.eq(tokenQueue), Mockito.anyList());
+ verify(matcher).matchToken(Matchers.eq(tokenQueue), Matchers.anyList());
verifyNoMoreInteractions(matcher);
- verify(output).add(Mockito.any(Statement.class));
+ verify(output).add(Matchers.any(Statement.class));
verifyNoMoreInteractions(output);
}