KickJava   Java API By Example, From Geeks To Geeks.

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


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 /*
7  * Created by IntelliJ IDEA.
8  * User: lk
9  * Date: Oct 21, 2002
10  * Time: 8:59:11 AM
11  * To change this template use Options | File Templates.
12  */

13 public class SimplifyBooleanReturnCheckTest
14     extends BaseCheckTestCase
15 {
16     public void testIt()
17             throws Exception JavaDoc
18     {
19         final DefaultConfiguration checkConfig =
20             createCheckConfig(SimplifyBooleanReturnCheck.class);
21         final String JavaDoc[] expected = {
22             "20:9: Conditional logic can be removed.",
23             "33:9: Conditional logic can be removed.",
24         };
25         verify(checkConfig, getPath("InputSimplifyBoolean.java"), expected);
26     }
27 }
28
Popular Tags