Package io.freefair.gradle.plugins
Class AbstractPluginTest
java.lang.Object
io.freefair.gradle.plugins.AbstractPluginTest
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FileBuilder
createFile
(String fileName) protected FileBuilder
createFile
(String directory, String fileName) protected GradleConfigurationBuilder
protected void
createJavaClass
(String sourceSet, String packageName, TypeSpec typeSpec) protected BuildResult
executeTask
(String... taskNames) protected File
protected void
protected String
readJavaClass
(String sourceSet, String packageName, String className) protected String
readJavaClassFromDirectory
(String direcotry, String packageName, String className) void
setup()
-
Field Details
-
testProjectDir
-
buildFile
-
-
Constructor Details
-
AbstractPluginTest
public AbstractPluginTest()
-
-
Method Details
-
setup
- Throws:
IOException
-
loadBuildFileFromClasspath
- Throws:
IOException
-
getTemporaryDirectory
-
createFile
-
createFile
-
createJavaClass
-
readJavaClassFromDirectory
-
readJavaClass
-
createGradleConfiguration
-
executeTask
-