Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 229 for testFiles (0.11 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverTest.groovy

        }
    
        @Test public void testPathValidationForDirectoryWithFile() {
            testFile.createNewFile()
            try {
                baseDirConverter.resolve(testFile.name, PathValidation.DIRECTORY)
                fail()
            } catch (InvalidUserDataException e) {
                assertThat(e.message, equalTo("Directory '$testFile.canonicalFile' is not a directory.".toString()))
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 29 17:15:52 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentSourceSetIntegrationTest.groovy

                    }
                }
    
                class TestRules extends RuleSource {
                    @Defaults
                    void useInternalView(@Path("components.sampleLib.sources.haxe") HaxeSourceSetInternal lss) {
                        lss.setInternalData("internal")
                    }
                }
                apply plugin: TestRules
    
                class ValidateTaskRules extends RuleSource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/internal/classpath/BuildScriptClasspathInstrumentationIntegrationTest.groovy

                it.parentFile.listFiles().findAll { it.name == fileName }
            }.flatten() as Set<TestFile>
        }
    
        Set<TestFile> typeHierarchyAnalysisOutputs(String artifactName, File cacheDir = getCacheDir()) {
            return analyzeOutputs(artifactName, TYPE_HIERARCHY_ANALYSIS_FILE_NAME, cacheDir)
        }
    
        TestFile typeHierarchyAnalysisOutput(String artifactName, File cacheDir = getCacheDir()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 15:08:33 UTC 2024
    - 29K bytes
    - Viewed (0)
  4. platforms/jvm/platform-jvm/src/test/groovy/org/gradle/api/java/archives/internal/DefaultManifestTest.groovy

            'namE'        | _
            'NamE'        | _
        }
    
        def "demonstrate Java vs. Ant Manifest classes behavior wrt. blank lines"() {
            given:
            TestFile noBlankLinesManifestFile = tmpDir.file('noBlankLinesManifestFile')
            TestFile blankLinesManifestFile = tmpDir.file('blankLinesManifestFile')
            noBlankLinesManifestFile.text = '''
                Manifest-Version: 1.0
                Some-Main-Attribute: someValue
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  5. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/fixtures/AbstractXcodeIntegrationSpec.groovy

            fixture(file(path))
        }
    
        protected NativeBinaryFixture fixture(TestFile binary) {
            new NativeBinaryFixture(binary, AvailableToolChains.defaultToolChain)
        }
    
        protected TestFile exe(String str) {
            file(OperatingSystem.current().getExecutableName(str))
        }
    
        protected TestFile sharedLib(String str) {
            file(OperatingSystem.current().getSharedLibraryName(str))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/internal/classpath/BuildScriptClasspathIntegrationSpec.groovy

        }
    
        TestFile inJarCache(String filename, boolean shouldBeFound = true) {
            String fullpath = result.output.readLines().find { it.matches(">>>file:.*${filename}") }.replace(">>>", "")
            assert fullpath.startsWith(jarsCacheDir.toURI().toString()) == shouldBeFound
            return new TestFile(new File(URI.create(fullpath)))
        }
    
        TestFile notInArtifactTransformCache(String filename) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:47 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFileHelper.groovy

    import static org.hamcrest.CoreMatchers.equalTo
    import static org.hamcrest.MatcherAssert.assertThat
    import static org.junit.Assert.assertTrue
    
    class TestFileHelper {
        TestFile file
    
        TestFileHelper(TestFile file) {
            this.file = file
        }
    
        void unzipTo(File target, boolean nativeTools, boolean checkParentDirs = true) {
            // Check that each directory in hierarchy is present
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegrationSpec.groovy

                zipFile.close()
            }
        }
    
        protected TestFile unpackDistribution(type = getDistributionLabel(), TestFile into = testDirectory) {
            TestFile zip = getZip(type)
            zip.usingNativeTools().unzipTo(into)
            assert into.listFiles().size() == 1
            into.listFiles()[0]
        }
    
        protected TestFile getZip(String type = getDistributionLabel()) {
            switch (type) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:14 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/jvm/JvmTest.groovy

            JavaVersion.resetCurrent()
            OperatingSystem.resetCurrent()
        }
    
        def assertJreHomeIfNotJava9(Jvm jvm, TestFile softwareRoot, String jreHome) {
            assertJreHomeIfNotJava9(jvm, softwareRoot, jreHome, false /* alsoStandaloneJreHome */)
        }
    
        def assertJreHomeIfNotJava9(Jvm jvm, TestFile softwareRoot, String jreHome, boolean alsoStandaloneJreHome) {
            if (jvm.javaVersion.isJava9Compatible()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/normalization/ConfigureRuntimeClasspathNormalizationIntegrationTest.groovy

            PropertiesResource propertiesFileInNestedInDirJar
            TestFile libraryJar
            TestFile nestedJar
            TestFile nestedInDirJar
            private TestFile libraryJarContents
            private TestFile nestedJarContents
            private TestFile nestedInDirJarContents
            private final String projectName
            final TestFile buildFile
            final TestFile settingsFile
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 37.2K bytes
    - Viewed (0)
Back to top