aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-channel/src/test/java
diff options
context:
space:
mode:
authorbellingard <bellingard@gmail.com>2010-10-19 13:32:35 +0000
committerbellingard <bellingard@gmail.com>2010-10-19 13:32:35 +0000
commita7c59030be71520be728f3576531b149d9bf4b2a (patch)
tree9d8c1458acfea1da5d8229f760a9ca557e058594 /sonar-channel/src/test/java
parent21d609df3a50bc7252d383ece40413ba3baac6ff (diff)
downloadsonarqube-a7c59030be71520be728f3576531b149d9bf4b2a.tar.gz
sonarqube-a7c59030be71520be728f3576531b149d9bf4b2a.zip
[SONAR-1875] Improve CodeReaderFilter with channel capabilities
http://jira.codehaus.org/browse/SONAR-1875
Diffstat (limited to 'sonar-channel/src/test/java')
-rw-r--r--sonar-channel/src/test/java/org/sonar/channel/CodeBufferTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-channel/src/test/java/org/sonar/channel/CodeBufferTest.java b/sonar-channel/src/test/java/org/sonar/channel/CodeBufferTest.java
index 3807951eee0..ab1183806c0 100644
--- a/sonar-channel/src/test/java/org/sonar/channel/CodeBufferTest.java
+++ b/sonar-channel/src/test/java/org/sonar/channel/CodeBufferTest.java
@@ -178,7 +178,7 @@ public class CodeBufferTest {
public void testChannelCodeReaderFilter() throws Exception {
// create a windowing channel that drops the 2 first characters, keeps 6 characters and drops the rest of the line
@SuppressWarnings({ "rawtypes", "unchecked" })
- CodeBuffer code = new CodeBuffer("0123456789\nABCDEFGHIJ", new ChannelCodeReaderFilter(null, new WindowingChannel()));
+ CodeBuffer code = new CodeBuffer("0123456789\nABCDEFGHIJ", new ChannelCodeReaderFilter(new Object(), new WindowingChannel()));
// test #charAt
assertEquals('2', code.charAt(0));
assertEquals('7', code.charAt(5));
@@ -205,7 +205,7 @@ public class CodeBufferTest {
assertThat(code.pop(), is( -1));
}
- class ReplaceNumbersFilter extends CodeReaderFilter {
+ class ReplaceNumbersFilter extends CodeReaderFilter<Object> {
private Pattern pattern = Pattern.compile("\\d");
private String REPLACEMENT = "-";
@@ -221,7 +221,7 @@ public class CodeBufferTest {
}
}
- class ReplaceCharFilter extends CodeReaderFilter {
+ class ReplaceCharFilter extends CodeReaderFilter<Object> {
private Pattern pattern = Pattern.compile("[a-zA-Z]");
private String REPLACEMENT = "*";