- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for expectResourceRead (0.15 sec)
-
platforms/software/resources/src/test/groovy/org/gradle/internal/resource/transfer/AccessorBackedExternalResourceTest.groovy
when: expectResourceRead(name, "12345") def result = resource.writeToIfPresent(file) then: result.bytesRead == 5 file.text == "12345" 0 * _ when: expectResourceRead(name, "hi") result = resource.writeTo(file) then: result.bytesRead == 2
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 11.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceAccessorTest.groovy
1 * delegate.withContent(location, false, _) >> null and: 0 * action._ } def "reads empty content"() { setup: expectReadBuildOperation(0) expectResourceRead(new ByteArrayInputStream()) when: def result = accessor.withContent(location, false, action) then: result == "result" and:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 12:31:19 UTC 2024 - 7.5K bytes - Viewed (0)