Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 480 for TestFile (0.22 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java

                prefix = className;
            }
            return prefix;
        }
    
        public TestFile file(Object... path) {
            return getTestDirectory().file(path);
        }
    
        public TestFile createFile(Object... path) {
            return file(path).createFile();
        }
    
        public TestFile createDir(Object... path) {
            return file(path).createDir();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DownloadableGradleDistribution.groovy

    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.util.GradleVersion
    
    abstract class DownloadableGradleDistribution extends DefaultGradleDistribution {
        private final TestFile versionDir
        private final ExclusiveFileAccessManager fileAccessManager = new ExclusiveFileAccessManager(120000, 200)
    
        DownloadableGradleDistribution(String version, TestFile versionDir) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/testFixtures/groovy/org/gradle/language/scala/fixtures/TestScalaComponent.groovy

    class Person2 {
    }
    ''')
        ]
    
        @Override
        void changeSources(List<TestFile> sourceFiles) {
            def personScalaFile = sourceFiles.find { it.name == "Person.scala" }
            personScalaFile.text = personScalaFile.text.replace("name", "lastName")
        }
    
        @Override
        void writeAdditionalSources(TestFile testFile) {
            testFile.file("scala/Extra.scala") << """
    object Extra {
      def someMethod(args: Array[String]) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/SourceFile.java

            return content;
        }
    
        public TestFile writeToDir(TestFile base) {
            return writeToDir(base, name);
        }
    
        public TestFile writeToDir(TestFile base, String name) {
            TestFile file = base.file(path, name);
            writeToFile(file);
            return file;
        }
    
        public void writeToFile(TestFile file) {
            if (file.exists()) {
                file.write("");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. pkg/util/filesystem/util_windows_test.go

    		}
    		return "\\\\.\\pipe\\test-pipe" + string(b)
    	}
    	testFile := generatePipeName(4)
    	pipeln, err := winio.ListenPipe(testFile, &winio.PipeConfig{SecurityDescriptor: "D:P(A;;GA;;;BA)(A;;GA;;;SY)"})
    	defer pipeln.Close()
    
    	require.NoErrorf(t, err, "Failed to listen on named pipe for test purposes: %v", err)
    	result, err := IsUnixDomainSocket(testFile)
    	assert.NoError(t, err, "Unexpected error from IsUnixDomainSocket.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:10:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BasicHttpResource.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    class BasicHttpResource extends HttpResource {
        private final String path
        private final TestFile file
    
        BasicHttpResource(HttpServer httpServer, TestFile file, String path) {
            super(httpServer)
            this.file = file
            this.path = path
        }
    
        @Override
        TestFile getFile() {
            return file
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. platforms/software/signing/src/integTest/groovy/org/gradle/plugins/signing/SigningIntegrationSpec.groovy

        }
    
        TestFile pom(String name = "sign-1.0") {
            m2RepoFile("${name}.pom")
        }
    
        TestFile pomSignature(String name = "sign-1.0") {
            m2RepoFile("${name}.pom.asc")
        }
    
        TestFile module(String name = "sign-1.0") {
            m2RepoFile("${name}.module")
        }
    
        TestFile moduleSignature(String name = "sign-1.0") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/build/BuildTestFile.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    class BuildTestFile extends TestFile {
        private final String projectName
    
        BuildTestFile(TestFile rootDir, String projectName) {
            super(rootDir)
            this.projectName = projectName
        }
    
        String getRootProjectName() {
            projectName
        }
    
        TestFile getBuildFile() {
            file("build.gradle")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/maven/MavenFileModuleTest.groovy

        def setup() {
            testFile = tmpDir.file("file")
            mavenFileModule = new MavenFileModule(testFile, testFile, "my-company", "my-artifact", "1.0")
            snapshotMavenFileModule = new MavenFileModule(testFile, testFile, "my-company", "my-artifact", "1.0-SNAPSHOT")
        }
    
        def "Add multiple dependencies without type"() {
            when:
            List dependencies = mavenFileModule.dependsOnModules("dep1", "dep2").dependencies
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/maven/MavenLocalModuleTest.groovy

        private String mavenMetadataFileName = 'maven-metadata-local.xml'
    
        def setup() {
            testFile = tmpDir.file("file")
            mavenLocalModule = new MavenLocalModule(testFile, testFile, "my-company", "my-artifact", "1.0")
            snapshotMavenLocalModule = new MavenLocalModule(testFile, testFile, "my-company", "my-artifact", "1.0-SNAPSHOT")
        }
    
        def "Add multiple dependencies without type"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top