improve code coverage
This commit is contained in:
parent
8a75a5feec
commit
7112470375
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue