Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/puppycrawl/tools/checkstyle/checks/InnerAssignmentCheckTest.java


1   package com.puppycrawl.tools.checkstyle.checks;
2   
3   import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
4   import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
5   
6   public class InnerAssignmentCheckTest
7       extends BaseCheckTestCase
8   {
9       public void testIt() throws Exception
10      {
11          final DefaultConfiguration checkConfig =
12              createCheckConfig(InnerAssignmentCheck.class);
13          final String[] expected = {
14              "102:15: Inner assignments should be avoided.",
15              "102:19: Inner assignments should be avoided.",
16              "104:39: Inner assignments should be avoided.",
17              "106:35: Inner assignments should be avoided.",
18          };
19          verify(checkConfig, getPath("InputSemantic.java"), expected);
20      }
21  }