Package io.freefair.gradle.plugins
Class AbstractPluginTest
- java.lang.Object
-
- io.freefair.gradle.plugins.AbstractPluginTest
-
public class AbstractPluginTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.File
buildFile
protected java.io.File
testProjectDir
-
Constructor Summary
Constructors Constructor Description AbstractPluginTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FileBuilder
createFile(java.lang.String fileName)
protected FileBuilder
createFile(java.lang.String directory, java.lang.String fileName)
protected GradleConfigurationBuilder
createGradleConfiguration()
protected void
createJavaClass(java.lang.String sourceSet, java.lang.String packageName, TypeSpec typeSpec)
protected BuildResult
executeTask(java.lang.String... taskNames)
protected java.io.File
getTemporaryDirectory()
protected void
loadBuildFileFromClasspath(java.lang.String name)
protected java.lang.String
readJavaClass(java.lang.String sourceSet, java.lang.String packageName, java.lang.String className)
protected java.lang.String
readJavaClassFromDirectory(java.lang.String direcotry, java.lang.String packageName, java.lang.String className)
void
setup()
-
-
-
Field Detail
-
testProjectDir
@TempDir protected java.io.File testProjectDir
-
buildFile
protected java.io.File buildFile
-
-
Method Detail
-
setup
@BeforeEach public void setup() throws java.io.IOException
- Throws:
java.io.IOException
-
loadBuildFileFromClasspath
protected void loadBuildFileFromClasspath(java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
getTemporaryDirectory
protected java.io.File getTemporaryDirectory()
-
createFile
protected FileBuilder createFile(java.lang.String fileName)
-
createFile
protected FileBuilder createFile(java.lang.String directory, java.lang.String fileName)
-
createJavaClass
protected void createJavaClass(java.lang.String sourceSet, java.lang.String packageName, TypeSpec typeSpec)
-
readJavaClassFromDirectory
protected java.lang.String readJavaClassFromDirectory(java.lang.String direcotry, java.lang.String packageName, java.lang.String className)
-
readJavaClass
protected java.lang.String readJavaClass(java.lang.String sourceSet, java.lang.String packageName, java.lang.String className)
-
createGradleConfiguration
protected GradleConfigurationBuilder createGradleConfiguration()
-
executeTask
protected BuildResult executeTask(java.lang.String... taskNames)
-
-