Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 5,606 for Def (0.03 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/MissingLocalArtifactMetadataTest.groovy

        }
    
        def "is equal when all attributes and module version are the same"() {
            def moduleVersion = DefaultModuleVersionIdentifier.newId("group", "module", "version")
            def componentId = DefaultModuleComponentIdentifier.newId(moduleVersion)
    
            def withClassifier = localArtifactIdentifier(componentId, "name", "type", "ext", 'classifier')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

        def "decode fails when boolean cannot be fully read"() {
            given:
            def bytes = truncate { Encoder encoder ->
                encoder.writeBoolean(true)
            }
    
            when:
            decode(bytes) { Decoder decoder ->
                decoder.readBoolean()
            }
    
            then:
            thrown(EOFException)
        }
    
        def "can encode and decode a string"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyContextManagerTest.groovy

            when:
            def result = manager.withIvy(action)
    
            then:
            result == "result"
    
            and:
            1 * action.transform({it != null}) >> "result"
            0 * action._
        }
    
        def "nested actions are executed against the same Ivy instance"() {
            def action1 = Mock(Action)
            def action2 = Mock(Action)
            def transformer = Mock(Transformer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CredentialsProviderFactoryTest.groovy

    class CredentialsProviderFactoryTest extends Specification {
    
        def providerFactory = Mock(ProviderFactory)
        def factory = new CredentialsProviderFactory(providerFactory)
    
        def "does not allow non-letters and non-digits for identity"() {
            when:
            factory.provide(PasswordCredentials, (String) identity)
    
            then:
            def e = thrown(IllegalArgumentException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy

            def dir = tmpDir.file("dir").createDir()
    
            expect:
            def stat = fs.stat(dir)
            stat.type == FileType.Directory
            stat.lastModified == 0
            stat.length == 0
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "stats symlink"() {
            def file = tmpDir.file("file")
            file.text = "123"
            def link = tmpDir.file("link")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseSynchronizationTasksCrossVersionSpec.groovy

            """
            settingsFile << "include 'sub'"
        }
    
        def "can run tasks upon Eclipse synchronization"() {
            setup:
            buildFile << "eclipse { synchronizationTasks 'foo' }"
    
            def projectsLoadedHandler = new IntermediateResultHandlerCollector<Void>()
            def buildFinishedHandler = new IntermediateResultHandlerCollector<EclipseModel>()
            def out = new ByteArrayOutputStream()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/classpath/InstrumentedTest.groovy

        @Rule
        final SetSystemProperties systemProperties = new SetSystemProperties()
    
        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:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

            def file = tmpDir.file("missing")
            def outFile = tmpDir.file("out")
    
            expect:
            def resource = new LocalFileStandInExternalResource(file, TestFiles.fileSystem())
            def result = resource.writeToIfPresent(outFile)
            result == null
            !outFile.exists()
        }
    
        def "can fail on missing file when copying to file"() {
            def file = tmpDir.file("missing")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  9. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishExternalVariantIntegrationTest.groovy

                }
                def componentFactory = objects.newInstance(PublishServices).softwareComponentFactory
            """
        }
    
        def newCompilation(String name, CompilationDetails details, String rootComponentName) {
            def runtimeClasspath = "${name}RuntimeClasspath"
            def implementation = "${name}Implementation"
            def runtimeElements = "${name}RuntimeElements"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 22:25:49 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy

            expect:
            def original = "abc"
            def isolated = isolatableFactory.isolate(original)
            isolated instanceof StringValueSnapshot
            isolated.isolate().is(original)
        }
    
        def "can coerce string value"() {
            expect:
            def original = "abc"
            def isolated = isolatableFactory.isolate(original)
            isolated.coerce(String).is(original)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top