1 package com.puppycrawl.tools.checkstyle.checks.javadoc; 2 3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase; 4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration; 5 import com.puppycrawl.tools.checkstyle.api.Configuration; 6 7 8 public class PackageHtmlCheckTest 9 extends BaseCheckTestCase 10 { 11 protected DefaultConfiguration createCheckerConfig( 12 Configuration aCheckConfig) 13 { 14 final DefaultConfiguration dc = new DefaultConfiguration("root"); 15 dc.addChild(aCheckConfig); 16 return dc; 17 } 18 19 public void testPackageHtml() 20 throws Exception 21 { 22 Configuration checkConfig = createCheckConfig(PackageHtmlCheck.class); 23 final String [] expected = { 24 "0: Missing package documentation file.", 25 }; 26 verify( 27 createChecker(checkConfig), 28 getPath("InputScopeAnonInner.java"), 29 getPath("package.html"), 30 expected); 31 } 32 } 33 | Popular Tags |