Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for setupSpec (0.16 sec)

  1. platforms/documentation/docs/src/test/groovy/org/gradle/docs/releasenotes/StaticReleaseNotesTest.groovy

    import spock.lang.Specification
    
    class StaticReleaseNotesTest extends Specification {
        @Shared File renderedFile
        @Shared Document renderedDocument
        @Shared String renderedText
    
        def setupSpec() {
            def context = new ReleaseNotesTestContext()
            renderedFile = context.renderedFile
            renderedText = renderedFile.getText("utf-8")
            renderedDocument = Jsoup.parse(renderedText)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/initialization/ProjectSpecsTest.groovy

    import org.gradle.api.internal.SettingsInternal
    import spock.lang.Specification
    
    class ProjectSpecsTest extends Specification {
        static File buildFile
        static File projectDir
        static File currentDir
    
        def setupSpec() {
            projectDir = Mock(File)
            _ * projectDir.getCanonicalFile() >> projectDir
            currentDir = Mock(File)
            _ * currentDir.getCanonicalFile() >> currentDir
            buildFile = Mock(File)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 27 03:42:56 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/file/FileCollectionSymlinkTest.groovy

        @Shared TestFile file = baseDir.file("file")
        @Shared TestFile symlink = baseDir.file("symlink")
        @Shared TestFile symlinked = baseDir.file("symlinked")
    
        def setupSpec() {
            file.text = 'some contents'
            symlinked.text = 'target of symlink'
            symlink.createLink(symlinked)
        }
    
        def "#desc can handle symlinks"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/ArchiveTreePerformanceTest.groovy

    
    class ArchiveTreePerformanceTest extends AbstractCrossVersionPerformanceTest {
        private static TestFile tempDir
        private static TestFile archiveContentsDir
    
        def setupSpec() {
            tempDir = new TestFile("build/tmp/tmp-archive-performance")
            archiveContentsDir = tempDir.file("tmp-archive-contents")
            if (!archiveContentsDir.exists()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:42:52 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/extensions/MultiTestLifecycleSpec.groovy

    @FluidDependenciesResolveTest
    class MultiTestLifecycleSpec extends Specification {
    
        private static final Lifecycle LIFECYCLE = new Lifecycle()
    
        @Rule
        public final SampleRule rule = new SampleRule("myName")
    
        def setupSpec() {
            LIFECYCLE.pushEvent("setup spec")
        }
    
        def cleanupSpec() {
            LIFECYCLE.assertEvents([
                "setup spec",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSoakTest.groovy

                        languageVersion = JavaLanguageVersion.of(${JAVA_VERSION.majorVersion})
                    }
                }
            """
    
        static JdkRepository jdkRepository
    
        static URI uri
    
        def setupSpec() {
            jdkRepository = new JdkRepository(JAVA_VERSION)
            uri = jdkRepository.start()
        }
    
        def cleanupSpec() {
            jdkRepository.stop()
        }
    
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 16:13:09 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/tooling/BuildInvocationsBuilderTest.groovy

        def grandChild1OfChild = ProjectBuilder.builder().withName("grandChild1").withParent(child).build()
        @Shared
        def grandChild2OfChild = ProjectBuilder.builder().withName("grandChild2").withParent(child).build()
    
        def setupSpec() {
            // create a project/task tree:
            //   root (t1, t2)
            //   +--- child 1 (t2, t3)
            //        +-- grand child (t3, t4)
            //        +-- grand child (t4)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. testing/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadComplexProjectSoakTest.groovy

    @Requires(IntegTestPreconditions.JavaHomeWithDifferentVersionAvailable)
    class JavaToolchainDownloadComplexProjectSoakTest extends AbstractIntegrationSpec {
    
        static JdkRepository jdkRepository
    
        static URI uri
    
        def setupSpec() {
            jdkRepository = new JdkRepository(JAVA_VERSION)
            uri = jdkRepository.start()
        }
    
        def cleanupSpec() {
            jdkRepository.stop()
        }
    
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:09:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/wrapper-shared/src/test/groovy/org/gradle/wrapper/InstallTest.groovy

        @Shared TestFile templateEvalZipFile = new TestFile(sharedTemporaryFolder.testDirectory, "template-eval-gradle.zip")
        @Shared String templateZipHash
        @Shared String templateEvalZipHash
    
        void setupSpec() {
            createTestZip(templateZipFile)
            templateZipHash = Install.calculateSha256Sum(templateZipFile)
            createEvilZip(templateEvalZipFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/SingleIncludePatternFileTreeSpec.groovy

        @Shared @ClassRule TestNameTestDirectoryProvider tempDir = new TestNameTestDirectoryProvider(SingleIncludePatternFileTreeSpec)
    
        def visitor = Mock(FileVisitor)
    
        def fileTree
    
        def setupSpec() {
            tempDir.testDirectory.create {
                dir1 {
                    file("file1")
                    file("file2")
                    file("file3")
                }
    
                dir2 {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top