Missing Switch Check compilable UT inputs
This commit is contained in:
parent
b10558945c
commit
d0bf96d90d
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
package com.puppycrawl.tools.checkstyle;
|
||||
|
||||
public class InputMissingSwitchDefault {
|
||||
public void foo() {
|
||||
int i = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue