Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cleanupSpec (0.14 sec)

  1. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/extensions/MultiTestLifecycleSpec.groovy

        @Rule
        public final SampleRule rule = new SampleRule("myName")
    
        def setupSpec() {
            LIFECYCLE.pushEvent("setup spec")
        }
    
        def cleanupSpec() {
            LIFECYCLE.assertEvents([
                "setup spec",
                "rule before", "setup", "simple test: isFluid: false", "cleanup", "rule after",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. testing/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadComplexProjectSoakTest.groovy

        static JdkRepository jdkRepository
    
        static URI uri
    
        def setupSpec() {
            jdkRepository = new JdkRepository(JAVA_VERSION)
            uri = jdkRepository.start()
        }
    
        def cleanupSpec() {
            jdkRepository.stop()
        }
    
        def setup() {
            jdkRepository.reset()
    
            executer.requireOwnGradleUserHomeDir()
                .withToolchainDownloadEnabled()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:09:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. testing/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSoakTest.groovy

        static JdkRepository jdkRepository
    
        static URI uri
    
        def setupSpec() {
            jdkRepository = new JdkRepository(JAVA_VERSION)
            uri = jdkRepository.start()
        }
    
        def cleanupSpec() {
            jdkRepository.stop()
        }
    
        def setup() {
            jdkRepository.reset()
    
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 16:13:09 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/process/internal/AbstractWorkerProcessIntegrationSpec.groovy

            CurrentBuildOperationRef.instance().set(new DefaultBuildOperationRef(new OperationIdentifier(123), null))
        }
    
        def cleanup() {
            CurrentBuildOperationRef.instance().clear()
        }
    
        def cleanupSpec() {
            services.close()
        }
    
        File gradleUserHome() {
            return tmpDir.file("gradleUserHome")
        }
    
        Class<?> compileWithoutClasspath(String className, String classText) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/os/OperatingSystemTest.groovy

        def setup() {
            OperatingSystem.resetCurrent()
        }
    
        def cleanup() {
            OperatingSystem.resetCurrent()
        }
    
        def cleanupSpec() {
            resetOperatingSystemClassStaticFields()
        }
    
        def "uses os.name property to determine OS name"() {
            given:
            System.properties['os.name'] = 'GradleOS 1.0'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  6. src/testing/testing.go

    	n := runtime.Callers(2, pc[:])
    	cleanupPc := pc[:n]
    
    	fn := func() {
    		defer func() {
    			c.mu.Lock()
    			defer c.mu.Unlock()
    			c.cleanupName = ""
    			c.cleanupPc = nil
    		}()
    
    		name := callerName(0)
    		c.mu.Lock()
    		c.cleanupName = name
    		c.cleanupPc = cleanupPc
    		c.mu.Unlock()
    
    		f()
    	}
    
    	c.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top