| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> [ checks Javadoc ] |
Source code: com/puppycrawl/tools/checkstyle/checks/AvoidStarImportTest.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 AvoidStarImportTest 7 extends BaseCheckTestCase 8 { 9 public void testWithChecker() 10 throws Exception 11 { 12 final DefaultConfiguration checkConfig = 13 createCheckConfig(AvoidStarImportCheck.class); 14 final String[] expected = { 15 "7: Using the '.*' form of import should be avoided - com.puppycrawl.tools.checkstyle.*.", 16 "9: Using the '.*' form of import should be avoided - java.io.*.", 17 "10: Using the '.*' form of import should be avoided - java.lang.*.", 18 }; 19 verify(checkConfig, getPath("InputImport.java"), expected); 20 } 21 }