Issue #2161: unify test input locations
This commit is contained in:
parent
82767dbe68
commit
e81a02f59b
|
|
@ -21,6 +21,9 @@ package com.puppycrawl.tools.checkstyle.checks.blocks;
|
|||
|
||||
import static org.junit.Assert.assertArrayEquals;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestSupport;
|
||||
|
|
@ -33,6 +36,11 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
*
|
||||
*/
|
||||
public class EmptyCatchBlockCheckTest extends BaseCheckTestSupport {
|
||||
@Override
|
||||
protected String getPath(String filename) throws IOException {
|
||||
return super.getPath("checks" + File.separator
|
||||
+ "blocks" + File.separator + filename);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetRequiredTokens() {
|
||||
|
|
@ -78,5 +86,4 @@ public class EmptyCatchBlockCheckTest extends BaseCheckTestSupport {
|
|||
int[] expected = {TokenTypes.LITERAL_CATCH };
|
||||
assertArrayEquals(expected, actual);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle;
|
||||
package com.puppycrawl.tools.checkstyle.checks.blocks;
|
||||
import java.io.IOException;
|
||||
public class InputEmptyCatchBlockCheck
|
||||
{
|
||||
Loading…
Reference in New Issue