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