1 package com.puppycrawl.tools.checkstyle.checks.metrics; 2 3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase; 4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration; 5 6 import java.io.File ; 7 8 public class BooleanExpressionComplexityCheckTest extends BaseCheckTestCase 9 { 10 public void test() throws Exception { 11 DefaultConfiguration checkConfig = 12 createCheckConfig(BooleanExpressionComplexityCheck.class); 13 14 String [] expected = { 15 "13:9: Boolean expression complexity is 4 (max allowed is 3).", 16 }; 17 18 verify(checkConfig, getPath("metrics" + File.separator + "BooleanExpressionComplexityCheckTestInput.java"), expected); 19 } 20 } 21 | Popular Tags |