Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getMapUnderTestToRead (0.3 sec)

  1. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AbstractAccessTrackingMapTest.groovy

        protected final BiConsumer<Object, Object> onAccess = Mock()
    
        protected abstract Map<? super String, ? super String> getMapUnderTestToRead()
    
        def "get(#key) is tracked"() {
            when:
            def result = getMapUnderTestToRead().get(key)
    
            then:
            result == expectedResult
            1 * onAccess.accept(key, reportedValue)
            0 * onAccess._
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesNonStringTest.groovy

            when:
            def result = getMapUnderTestToRead().getProperty('keyWithNonStringValue')
    
            then:
            result == null
            1 * listener.onAccess('keyWithNonStringValue', NON_STRING_VALUE)
        }
    
        def "getProperty(String, String) is tracked for non-string values"() {
            when:
            def result = getMapUnderTestToRead().getProperty('keyWithNonStringValue', 'defaultValue')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingEnvMapTest.groovy

    class AccessTrackingEnvMapTest extends AbstractAccessTrackingMapTest {
        @Override
        protected Map<String, String> getMapUnderTestToRead() {
            return new AccessTrackingEnvMap(new StubEnvMap(), onAccess)
        }
    
        def "access to non-string element with containsKey throws"() {
            when:
            getMapUnderTestToRead().containsKey(Integer.valueOf(5))
    
            then:
            thrown(RuntimeException)
            0 * onAccess._
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

        }
    
        @Override
        protected Properties getMapUnderTestToRead() {
            return getMapUnderTestToWrite()
        }
    
        protected Properties getMapUnderTestToWrite() {
            return new AccessTrackingProperties(propertiesWithContent(innerMap), listener)
        }
    
        def "getProperty(#key) is tracked"() {
            when:
            def result = getMapUnderTestToRead().getProperty(key)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
Back to top