Skip to content

Commit

Permalink
Issue #2161: unify test input locations
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach authored and romani committed Oct 12, 2015
1 parent 95697e9 commit 50d876d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

import static com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck.MSG_KEY;

import java.io.File;
import java.io.IOException;

import org.junit.Assert;
import org.junit.Test;

Expand All @@ -29,6 +32,12 @@

public class SimplifyBooleanExpressionCheckTest
extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
+ "coding" + File.separator + filename);
}

@Test
public void testIt() throws Exception {
final DefaultConfiguration checkConfig =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

import static com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck.MSG_KEY;

import java.io.File;
import java.io.IOException;

import org.junit.Assert;
import org.junit.Test;

Expand All @@ -29,6 +32,12 @@

public class SimplifyBooleanReturnCheckTest
extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
+ "coding" + File.separator + filename);
}

@Test
public void testIt() throws Exception {
final DefaultConfiguration checkConfig =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Test case file for checkstyle.
// Created: 2001
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle;
package com.puppycrawl.tools.checkstyle.checks.coding;

/**
Contains boolean logic that can be simplified.
Expand Down

0 comments on commit 50d876d

Please sign in to comment.