KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > coding > AvoidInlineConditionalsCheckTest


1 package com.puppycrawl.tools.checkstyle.checks.coding;
2
3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
5
6 public class AvoidInlineConditionalsCheckTest
7     extends BaseCheckTestCase
8 {
9     public void testIt()
10         throws Exception JavaDoc
11     {
12         final DefaultConfiguration checkConfig =
13             createCheckConfig(AvoidInlineConditionalsCheck.class);
14         final String JavaDoc[] expected = {
15             "97:29: Avoid inline conditionals.",
16             "98:20: Avoid inline conditionals.",
17             "150:34: Avoid inline conditionals.",
18         };
19         verify(checkConfig, getPath("InputWhitespace.java"), expected);
20     }
21 }
22
Popular Tags