Missing Switch Check compilable UT inputs

This commit is contained in:
alexkravin 2014-12-03 14:19:46 +04:00 committed by Roman Ivanov
parent b10558945c
commit d0bf96d90d
3 changed files with 4 additions and 2 deletions

View File

@ -155,7 +155,7 @@ public class DescendantTokenCheckTest extends BaseCheckTestSupport
checkConfig.addAttribute("minimumMessage", "switch without \"default\" clause.");
final String[] expected = {
"15:9: switch without \"default\" clause.",
"17:9: switch without \"default\" clause.",
};
verify(checkConfig, getPath("InputMissingSwitchDefault.java"), expected);

View File

@ -38,7 +38,7 @@ public class MissingSwitchDefaultCheckTest
public void testMissingSwitchDefault() throws Exception
{
final String[] expected = {
"15:9: switch without \"default\" clause.",
"17:9: switch without \"default\" clause.",
};
verify(
mCheckConfig,

View File

@ -1,3 +1,5 @@
package com.puppycrawl.tools.checkstyle;
public class InputMissingSwitchDefault {
public void foo() {
int i = 1;