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 11 { 12 final DefaultConfiguration checkConfig = 13 createCheckConfig(AvoidInlineConditionalsCheck.class); 14 final String [] 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 |