forked from phoedos/pmd
dogfood, whitespaces
This commit is contained in:
@ -6,8 +6,8 @@ package net.sourceforge.pmd.cpd;
|
||||
import java.io.IOException;
|
||||
|
||||
import net.sourceforge.pmd.testframework.AbstractTokenizerTest;
|
||||
import net.sourceforge.pmd.testframework.StreamUtil;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@ -18,14 +18,14 @@ public class PythonTokenizerTest extends AbstractTokenizerTest {
|
||||
|
||||
@Before
|
||||
@Override
|
||||
public void buildTokenizer() {
|
||||
public void buildTokenizer() throws IOException {
|
||||
this.tokenizer = new PythonTokenizer();
|
||||
this.sourceCode = new SourceCode(new SourceCode.StringCodeLoader(this.getSampleCode(), FILENAME));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSampleCode() {
|
||||
return StreamUtil.toString(PythonTokenizer.class.getResourceAsStream(FILENAME));
|
||||
public String getSampleCode() throws IOException {
|
||||
return IOUtils.toString(PythonTokenizer.class.getResourceAsStream(FILENAME));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user