Java8 Method References moved java8 inputs to resources-noncompilable folder
This commit is contained in:
parent
3c6284609a
commit
8963b403d1
|
|
@ -18,6 +18,8 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.grammars.java8;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestSupport;
|
||||
|
|
@ -34,7 +36,9 @@ public class MethodReferencesTest extends BaseCheckTestSupport
|
|||
final DefaultConfiguration checkConfig =
|
||||
createCheckConfig(MemberNameCheck.class);
|
||||
final String[] expected = {};
|
||||
verify(checkConfig, getPath("grammars/java8/InputMethodReferencesTest.java"), expected);
|
||||
verify(checkConfig, new File("src/test/resources-noncompilable/com/"
|
||||
+ "puppycrawl/tools/checkstyle/grammars/java8/"
|
||||
+ "InputMethodReferencesTest.java").getCanonicalPath(), expected);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -45,7 +49,9 @@ public class MethodReferencesTest extends BaseCheckTestSupport
|
|||
final DefaultConfiguration checkConfig =
|
||||
createCheckConfig(MemberNameCheck.class);
|
||||
final String[] expected = {};
|
||||
verify(checkConfig, getPath("grammars/java8/InputMethodReferencesTest2.java"), expected);
|
||||
verify(checkConfig, new File("src/test/resources-noncompilable/com/"
|
||||
+ "puppycrawl/tools/checkstyle/grammars/java8/"
|
||||
+ "InputMethodReferencesTest2.java").getCanonicalPath(), expected);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +62,9 @@ public class MethodReferencesTest extends BaseCheckTestSupport
|
|||
final DefaultConfiguration checkConfig =
|
||||
createCheckConfig(MemberNameCheck.class);
|
||||
final String[] expected = {};
|
||||
verify(checkConfig, getPath("grammars/java8/InputMethodReferencesTest3.java"), expected);
|
||||
verify(checkConfig, new File("src/test/resources-noncompilable/com/"
|
||||
+ "puppycrawl/tools/checkstyle/grammars/java8/"
|
||||
+ "InputMethodReferencesTest3.java").getCanonicalPath(), expected);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue