Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for toPlatformLineSeparators (0.27 sec)

  1. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginConfigurationIntegrationTest.groovy

            executer.commandLine = "build/install/test/bin/test"
            def result = executer.run()
            then:
            result.assertNormalExitValue()
            out.toString() == TextUtil.toPlatformLineSeparators("all good\n")
        }
    
        @Requires(UnitTestPreconditions.Jdk9OrLater)
        def "can configure using project extension for main class and main module"() {
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ManagedModelInitializerTest.groovy

            when:
            realizeNodeOfType(ManagedWithInvalidModelMap)
    
            then:
            def ex = thrown(ModelRuleExecutionException)
            ex.cause.message == TextUtil.toPlatformLineSeparators("""A model element of type: '${fullyQualifiedNameOf(ManagedWithInvalidModelMap)}' can not be constructed.
    Its property 'org.gradle.model.ModelMap<java.io.FileInputStream> map' is not a valid managed collection
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/DefaultArtifactVariantSelectorFactoryTest.groovy

    import org.gradle.util.AttributeTestUtil
    import spock.lang.Specification
    
    import static org.gradle.api.artifacts.type.ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class DefaultArtifactVariantSelectorFactoryTest extends Specification {
        def matchingCache = Mock(ConsumerProvidedVariantFinder)
        def producerSchema = Mock(AttributesSchemaInternal)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/util/internal/TextUtilTest.groovy

            "none"                            | "none"
            "one\rtwo\nthree\r\nfour\n\rfive" | "one${sep}two${sep}three${sep}four${sep}${sep}five"
        }
    
        def toPlatformLineSeparators() {
            expect:
            TextUtil.toPlatformLineSeparators(original) == converted
    
            where:
            original                          | converted
            ""                                | ""
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy

    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.junit.Rule
    import spock.lang.Issue
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class FileOrUriNotationConverterTest extends Specification {
    
        @Rule public TestNameTestDirectoryProvider folder = new TestNameTestDirectoryProvider(getClass());
    
        def "with File returns this File"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 16:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/ArtifactNotFoundExceptionTest.groovy

            }
            def locations = ["http://somewhere", "sftp://elsewhere"]
            def exception = new ArtifactNotFoundException(artifactId, locations)
    
            expect:
            exception.message == TextUtil.toPlatformLineSeparators("""Could not find <artifact>.
    Searched in the following locations:
        http://somewhere
        sftp://elsewhere""")
        }
    
        def "formats message when no locations attempted"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy

    import org.gradle.util.TestUtil
    import spock.lang.Specification
    import spock.lang.Unroll
    
    import static com.google.common.collect.ImmutableList.copyOf
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class LocalComponentDependencyMetadataTest extends Specification {
        AttributesSchemaInternal attributesSchema = new DefaultAttributesSchema(TestUtil.instantiatorFactory(), SnapshotTestUtil.isolatableFactory())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/source/PrintStreamLoggingSystemTest.groovy

            loggingSystem.restore(snapshot)
            capturing.println("info-1")
            stream.println('info-2')
    
            then:
            stream == originalStream
            original.toString() == TextUtil.toPlatformLineSeparators('''info-1
    info-2
    ''')
            0 * listener._
        }
    
        def restoreStopsCapturingWhenCapturingWasOffWhenSnapshotTaken() {
            def off = loggingSystem.snapshot()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/ProjectLayoutSetupRegistrySpec.groovy

            registry.add(generator("desc3"))
    
            when:
            registry.get("unknown")
    
            then:
            def e = thrown(GradleException)
            e.message == TextUtil.toPlatformLineSeparators("""The requested build type 'unknown' is not supported. Supported types:
      - 'default'
      - 'desc1'
      - 'desc2'
      - 'desc3'
      - 'maven'""")
        }
    
        BuildGenerator generator(String id) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 18:02:40 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/report/unbound/UnboundRulesReporterTest.groovy

                            .immutableInput(UnboundRuleInput.type(Number).bound().path("parent.p6")).build()
            ])
    
            then:
            output.toString() == TextUtil.toPlatformLineSeparators("""> r1
    >   subject:
    >     - parent.p1 String [*]
    >     - <no path> String [*]
    >         scope: some.scope
    >     - parent.p3 Integer
    >   inputs:
    >     - parent.p4 Number [*]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top