improve code coverage

This commit is contained in:
Oliver Burn 2002-12-08 04:15:07 +00:00
parent 8a75a5feec
commit 7112470375
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package com.puppycrawl.tools.checkstyle;
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
import junit.framework.TestCase;
/**
* Test class for checker
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
*/
public class CheckerTest
extends TestCase
{
public void testPackageNames() throws CheckstyleException
{
final Checker c = new Checker();
final String[] pkgs = new String[0];
c.setPackageNames(pkgs);
assertEquals(pkgs, c.getPackageNames());
}
}