Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 763 for New (0.05 sec)

  1. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        def "can apply ContentAndMetadataAction to file contents"() {
            def file = tmpDir.createFile("content")
            file.text = "1234"
    
            expect:
            def resource = new LocalFileStandInExternalResource(file, TestFiles.fileSystem())
            def result = resource.withContentIfPresent(new ExternalResource.ContentAndMetadataAction<String>() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/DefaultBinaryNamingSchemeTest.groovy

            original.withVariantDimension("dim2").getOutputDirectory(new File(".")) == new File(".", "parent/type/dim1/dim2")
            original.withRole("role", false).getOutputDirectory(new File(".")) == new File(".", "parent/role/dim1")
            original.withRole("role", true).getOutputDirectory(new File(".")) == new File(".", "parent/dim1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. subprojects/composite-builds/src/test/groovy/org/gradle/composite/internal/DefaultIncludedBuildTaskGraphParallelTest.groovy

        def "runs scheduled unrelated work across multiple builds"() {
            def services = new TreeServices(workers)
            def childBuild = build(services, new DefaultBuildIdentifier(Path.path(":child")))
            def build = build(services, DefaultBuildIdentifier.ROOT)
            def childNode = new TestNode("child build node")
            def node = new TestNode("main build node")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/core/BuildScanAutoApplyIntegrationTest.groovy

        private final DevelocityPluginCheckInFixture fixture = new DevelocityPluginCheckInFixture(testDirectory, mavenRepo, createExecuter())
        private final GradleEnterprisePluginCheckInFixture gradleEnterpriseFixture = new GradleEnterprisePluginCheckInFixture(testDirectory, mavenRepo, createExecuter())
    
        def setup() {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 08:50:27 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/m3/ToolingApiEclipseModelCrossVersionSpec.groovy

        }
    
        def "does not run any tasks when fetching model"() {
            when:
            projectDir.file('build.gradle').text = '''
    apply plugin: 'java'
    gradle.taskGraph.beforeTask { throw new RuntimeException() }
    '''
            HierarchicalEclipseProject project = loadToolingModel(HierarchicalEclipseProject)
    
            then:
            project != null
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/CrossBuildCachingRuleExecutorTest.groovy

        Transformer<Serializable, Id> keyTransformer = new Transformer<Serializable, Id>() {
            @Override
            Serializable transform(Id id) {
                id.name
            }
        }
        Transformer<Result, Details> detailsToResult = new Transformer<Result, Details>() {
            @Override
            Result transform(Details details) {
                new Result(length: details.name.length())
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/annotations/AbstractTypeMetadataWalkerTest.groovy

            def thirdProperty = TestUtil.propertyFactory().property(String).value("third-property")
            def myTask = new MyTask()
            def nestedType = new NestedType()
            def namedType = new NamedType()
            nestedType.inputProperty = secondProperty
            namedType.inputProperty = thirdProperty
            myTask.inputProperty = firstProperty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/JUnitXmlResultWriterSpec.groovy

            given:
            def options = new JUnitXmlResultOptions(false, false, true, true)
    
            and:
            TestClassResult result = new TestClassResult(1, "com.foo.FooTest", startTime)
            result.add(new TestMethodResult(1, "some test", SUCCESS, 15, startTime + 25))
            result.add(new TestMethodResult(2, "some test two", SUCCESS, 15, startTime + 30))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:51:05 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/typeregistration/BaseInstanceFactoryTest.groovy

            instanceFactory.register(ModelType.of(ThingSpec), new SimpleModelRuleDescriptor("thing"))
                .withImplementation(ModelType.of(DefaultThingSpec))
            instanceFactory.register(ModelType.of(OtherThingSpec), new SimpleModelRuleDescriptor("thing"))
                .withImplementation(ModelType.of(DefaultOtherThingSpec))
            instanceFactory.register(ModelType.of(MultiplePathsToRoot), new SimpleModelRuleDescriptor("thing"))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandlerTest.groovy

        private ImportsReader importsReader
        @Rule
        public TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        @Rule
        public SetSystemProperties systemProperties = new SetSystemProperties()
    
        def setup() {
            def problemEmitter = Stub(ProblemEmitter)
            def problems = new DefaultProblems(problemEmitter)
    
            File testProjectDir = tmpDir.createDir("projectDir")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 08:24:10 UTC 2023
    - 19.4K bytes
    - Viewed (0)
Back to top