Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 68 for toPlatformLineSeparators (0.44 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/events/SelectOptionPromptEventTest.groovy

    class SelectOptionPromptEventTest extends Specification {
        def "formats prompt"() {
            def event = new SelectOptionPromptEvent(123, "question", ["11", "12", "13"], 1)
    
            assert event.prompt == TextUtil.toPlatformLineSeparators("""question:
      1: 11
      2: 12
      3: 13
    Enter selection (default: 12) [1..3] """)
        }
    
        def "accepts valid input"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/modifiers/BuildInitBuildScriptDslTest.groovy

        def "should throw exception for unknown build script DSL"() {
            when:
            BuildInitDsl.fromName("unknown")
    
            then:
            GradleException e = thrown()
            e.message == TextUtil.toPlatformLineSeparators("""The requested build script DSL 'unknown' is not supported. Supported DSLs:
      - 'kotlin'
      - 'groovy'""")
        }
    
        def "should list all supported build script DSLs"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DefaultMetadataProviderTest.groovy

    import org.gradle.util.AttributeTestUtil
    import org.gradle.util.TestUtil
    import org.gradle.util.internal.BuildCommencedTimeProvider
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class DefaultMetadataProviderTest extends Specification {
        def id = Stub(ModuleComponentIdentifier) {
            getGroup() >> 'group'
            getName() >> 'name'
            getVersion() >> "1.2"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 17:38:42 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanTest.groovy

    import spock.lang.Issue
    
    import java.util.function.Consumer
    
    import static org.gradle.internal.snapshot.CaseSensitivity.CASE_SENSITIVE
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    import static org.gradle.util.internal.WrapUtil.toList
    
    class DefaultExecutionPlanTest extends AbstractExecutionPlanSpec {
        DefaultExecutionPlan executionPlan
        DefaultFinalizedExecutionPlan finalizedPlan
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 35.5K bytes
    - Viewed (0)
Back to top