use of com.puppycrawl.tools.checkstyle.api.Configuration in project checkstyle by checkstyle.
the class IndentationTest method correctTest.
@Test
public void correctTest() throws Exception {
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;
final Configuration checkConfig = getCheckConfig("Indentation");
final String filePath = getPath("InputIndentationCorrect.java");
final Integer[] warnList = getLinesWithWarn(filePath);
verify(checkConfig, filePath, expected, warnList);
}
use of com.puppycrawl.tools.checkstyle.api.Configuration in project checkstyle by checkstyle.
the class IndentationTest method correctClassTest.
@Test
public void correctClassTest() throws Exception {
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;
final Configuration checkConfig = getCheckConfig("Indentation");
final String filePath = getPath("InputIndentationCorrectClass.java");
final Integer[] warnList = getLinesWithWarn(filePath);
verify(checkConfig, filePath, expected, warnList);
}
use of com.puppycrawl.tools.checkstyle.api.Configuration in project checkstyle by checkstyle.
the class IndentationTest method correctForTest.
@Test
public void correctForTest() throws Exception {
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;
final Configuration checkConfig = getCheckConfig("Indentation");
final String filePath = getPath("InputIndentationCorrectForAndParameter.java");
final Integer[] warnList = getLinesWithWarn(filePath);
verify(checkConfig, filePath, expected, warnList);
}
use of com.puppycrawl.tools.checkstyle.api.Configuration in project checkstyle by checkstyle.
the class IndentationTest method correctWhileTest.
@Test
public void correctWhileTest() throws Exception {
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;
final Configuration checkConfig = getCheckConfig("Indentation");
final String filePath = getPath("InputIndentationCorrectWhileDoWhileAndParameter.java");
final Integer[] warnList = getLinesWithWarn(filePath);
verify(checkConfig, filePath, expected, warnList);
}
use of com.puppycrawl.tools.checkstyle.api.Configuration in project checkstyle by checkstyle.
the class IndentationTest method correctReturnTest.
@Test
public void correctReturnTest() throws Exception {
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;
final Configuration checkConfig = getCheckConfig("Indentation");
final String filePath = getPath("InputIndentationCorrectReturnAndParameter.java");
final Integer[] warnList = getLinesWithWarn(filePath);
verify(checkConfig, filePath, expected, warnList);
}
Aggregations