Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for toPlatformLineSeparators (0.29 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/TreeFormatterTest.groovy

            formatter.node(toPlatformLineSeparators("multiple\nlines"))
            formatter.node(toPlatformLineSeparators("another\nchild"))
            formatter.endChildren()
            formatter.node(toPlatformLineSeparators("one\ntwo"))
            formatter.endChildren()
    
            then:
            formatter.toString() == toPlatformLineSeparators("""Multiple
    lines:
      - child 1:
          - multiple
            lines
          - another
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/process/ArgWriterTest.groovy

            when:
            argWriter.args("-nologo")
    
            then:
            writer.toString() == toPlatformLineSeparators("-nologo\n")
        }
    
        def "writes multiple arguments to line"() {
            when:
            argWriter.args("-I", "some/dir")
    
            then:
            writer.toString() == toPlatformLineSeparators("-I some/dir\n")
        }
    
        def "quotes argument with whitespace"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/VersionCatalogGeneratorTest.groovy

    import org.gradle.api.file.Directory
    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class VersionCatalogGeneratorTest extends Specification {
        private static final String COMMON_START = """# This file was generated by the Gradle 'init' task.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:02:29 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarderTest.groovy

            when:
            userInputReceiver.readAndForwardText(event)
            source << toPlatformLineSeparators("def\njkl\n")
    
            then:
            receiveUserResponse "12"
    
            when:
            userInputReceiver.readAndForwardStdin(new ReadStdInEvent())
    
            then:
            receiveStdin toPlatformLineSeparators("jkl\n")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. platforms/jvm/ear/src/test/groovy/org/gradle/plugins/ear/descriptor/internal/DefaultDeploymentDescriptorTest.groovy

    import org.gradle.util.TestUtil
    import org.junit.Rule
    import spock.lang.Specification
    
    import javax.xml.parsers.DocumentBuilderFactory
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class DefaultDeploymentDescriptorTest extends Specification {
        private ObjectFactory objectFactory = TestUtil.objectFactory()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 19 22:06:51 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/ModuleVersionNotFoundExceptionTest.groovy

    import static org.gradle.api.internal.artifacts.DefaultModuleVersionIdentifier.newId
    import static org.gradle.internal.component.external.model.DefaultModuleComponentSelector.newSelector
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class ModuleVersionNotFoundExceptionTest extends Specification {
        static ModuleIdentifier mid(String group, String name) {
            DefaultModuleIdentifier.newId(group, name)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/ModuleVersionResolveExceptionTest.groovy

            expect:
            exception.message == 'Could not resolve a:b:c.'
    
            onePath.message == toPlatformLineSeparators('''Could not resolve a:b:c.
    Required by:
        org:a:1.2 > org:b:5 > org:c:1.0''')
            onePath.stackTrace == exception.stackTrace
            onePath.cause == cause
    
            twoPaths.message == toPlatformLineSeparators('''Could not resolve a:b:c.
    Required by:
        org:a:1.2 > org:b:5 > org:c:1.0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerDefaultConfigurationTest.groovy

            then:
            err.empty
            out == TextUtil.toPlatformLineSeparators("""lifecycle
    warn
    quiet
    """)
        }
    
        def "messages logged at ERROR level are directed to default error stream"() {
            when:
            logger().error("error")
    
            then:
            out.empty
            err == TextUtil.toPlatformLineSeparators("""error
    """)
        }
    
        private String stacktrace(Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/GitIgnoreGeneratorTest.groovy

    import org.gradle.api.file.RegularFile
    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class GitIgnoreGeneratorTest extends Specification {
    
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        InitSettings settings = Mock(InitSettings) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:17:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/internal/JavadocOptionFileWriterTest.groovy

            then:
            tempFile.text == toPlatformLineSeparators("""-key1 'value1'
    -key2 'value2'
    -key3 'value3'
    """)
            when:
            optionsMap.put("locale", new StringJavadocOptionFileOption("locale", "alocale"));
            and:
            javadocOptionFileWriter.write(tempFile)
            then:
            tempFile.text == toPlatformLineSeparators("""-locale 'alocale'
    -key1 'value1'
    -key2 'value2'
    -key3 'value3'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top