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 FilebuildFileorg.junit.rules.TemporaryFoldertestProjectDir 
- 
Constructor Summary
Constructors Constructor Description AbstractPluginTest() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FileBuildercreateFile(String fileName)protected FileBuildercreateFile(String directory, String fileName)protected GradleConfigurationBuildercreateGradleConfiguration()protected voidcreateJavaClass(String sourceSet, String packageName, com.squareup.javapoet.TypeSpec typeSpec)protected BuildResultexecuteTask(String... taskNames)protected FilegetTemporaryDirectory()protected voidloadBuildFileFromClasspath(String name)protected StringreadJavaClass(String sourceSet, String packageName, String className)protected StringreadJavaClassFromDirectory(String direcotry, String packageName, String className)voidsetup() 
 - 
 
- 
- 
Field Detail
- 
testProjectDir
public final org.junit.rules.TemporaryFolder testProjectDir
 
- 
buildFile
protected File buildFile
 
 - 
 
- 
Method Detail
- 
setup
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, com.squareup.javapoet.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)
 
 - 
 
 -