Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withInstrumentedInputsListener (0.44 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/classpath/InstrumentedTest.groovy

        def cleanup() {
            InstrumentedInputs.discardListener()
        }
    
        def "notifies listener when system property is used"() {
            def listener = withInstrumentedInputsListener()
    
            System.setProperty("prop", "value")
    
            when:
            def result = Instrumented.systemProperty("prop", "consumer")
    
            then:
            result == "value"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy

            0 * fileAccessTimeJournal._
        }
    
        def "transforms class to intercept calls to System.getProperty()"() {
            given:
            def listener = withInstrumentedInputsListener()
            def cl = transformAndLoad(SystemPropertyAccessingThing)
    
            when:
            cl.readProperty()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top