- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 31 for toPlatformLineSeparators (0.33 sec)
-
platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/generator/XmlPersistableConfigurationObjectTest.groovy
rootElement = 'modified-xml' def outputFile = tmpDir.file('output.xml') when: object.store(outputFile) then: outputFile.text == TextUtil.toPlatformLineSeparators('<?xml version="1.0" encoding="UTF-8"?>\n<root name="modified-xml"/>\n') } def "can add transform Actions"() { object.loadDefaults() def outputFile = tmpDir.file('output.xml')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 2.8K bytes - Viewed (0) -
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/AbstractBuildScriptBuilderTest.groovy
import org.gradle.test.fixtures.file.TestFile import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider import org.junit.Rule import spock.lang.Specification import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators abstract class AbstractBuildScriptBuilderTest extends Specification { @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) Directory target = Mock() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:47:19 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/LinePrefixingStyledTextOutputTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 3.7K bytes - Viewed (0) -
testing/integ-test/src/integTest/groovy/org/gradle/integtests/StdioIntegrationTest.groovy
''' executer.withStdinPipe(new PipedOutputStream() { @Override void connect(PipedInputStream snk) throws IOException { super.connect(snk) write(TextUtil.toPlatformLineSeparators("abc\n123").bytes) close() } }) when: run "echo" then: output.contains("[abc][123]") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 30 05:02:18 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/DefaultNativeToolChainRegistryTest.groovy
import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider import org.gradle.util.TestUtil import org.junit.Rule import spock.lang.Specification import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators class DefaultNativeToolChainRegistryTest extends Specification { @Rule TestNameTestDirectoryProvider testDir = new TestNameTestDirectoryProvider(getClass())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 7.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)