Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 7,133 for Def (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/internal/BuildScriptTransformerSpec.groovy

            def target = Mock(ScriptTarget) {
                getClasspathBlockName() >> "buildscript"
            }
            def targetScope = Stub(ClassLoaderScope) {
                createChild(_ as String) >> Stub(ClassLoaderScope)
            }
            def loader = getClass().getClassLoader()
            def transformer = new BuildScriptTransformer(source, target)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestTaskSpec.groovy

    import org.gradle.util.TestUtil
    
    class TestTaskSpec extends AbstractProjectBuilderSpec {
        def testExecuter = Mock(TestExecuter)
        def suiteDescriptor = Mock(TestDescriptorInternal)
        def testDescriptor = Mock(TestDescriptorInternal)
    
        private Test task
    
        def setup() {
            task = TestUtil.create(temporaryFolder).task(Test)
            task.testExecuter = testExecuter
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top