Class AbstractPluginTest


  • public class AbstractPluginTest
    extends java.lang.Object
    • Field Detail

      • testProjectDir

        @TempDir
        protected java.io.File testProjectDir
      • buildFile

        protected java.io.File buildFile
    • Constructor Detail

      • AbstractPluginTest

        public AbstractPluginTest()
    • 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)
      • executeTask

        protected BuildResult executeTask​(java.lang.String... taskNames)