Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for setSystemProperties (0.78 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/util/SetSystemProperties.java

     */
    public class SetSystemProperties implements TestRule {
        private final Properties properties;
        private final Map<String, Object> customProperties = new HashMap<String, Object>();
        private static final String[] IMMUTABLE_SYSTEM_PROPERTIES = new String[]{"java.io.tmpdir"};
    
        public SetSystemProperties() {
            properties = new Properties();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/SetSystemPropertiesTest.groovy

            def properties = [:]
    
            given:
            System.setProperty(TEST_PROPERTY, "bar")
            properties[TEST_PROPERTY] = "baz"
            SetSystemProperties setSystemProperties = new SetSystemProperties(properties)
    
            when:
            setSystemProperties.apply(base, Stub(Description)).evaluate()
    
            then:
            1 * base.evaluate() >> { assert System.getProperty(TEST_PROPERTY) == "baz" }
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/wrapper-shared/src/test/groovy/org/gradle/wrapper/GradleUserHomeLookupTest.groovy

    import org.gradle.util.SetSystemProperties
    import org.junit.Rule
    import spock.lang.Issue
    import spock.lang.Specification
    
    class GradleUserHomeLookupTest extends Specification {
    
        final ProcessEnvironment env = NativeServicesTestFixture.getInstance().get(ProcessEnvironment)
    
        @Rule
        SetSystemProperties setSystemProperties = new SetSystemProperties()
    
        @Requires(UnitTestPreconditions.NotEC2Agent)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/initialization/DefaultGradlePropertiesController.java

            return sharedGradleProperties;
        }
    
        @Override
        public void loadGradlePropertiesFrom(File settingsDir, boolean setSystemProperties) {
            state = state.loadGradlePropertiesFrom(settingsDir, setSystemProperties);
        }
    
        @Override
        public void unloadGradleProperties() {
            state = new NotLoaded();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 11:26:22 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpClientHelperTimeoutTest.groovy

    import org.gradle.util.SetSystemProperties
    import org.junit.Rule
    import spock.lang.Specification
    import spock.lang.Subject
    
    import static org.gradle.internal.resource.transport.http.JavaSystemPropertiesHttpTimeoutSettings.SOCKET_TIMEOUT_SYSTEM_PROPERTY
    
    class HttpClientHelperTimeoutTest extends Specification {
    
        @Rule SetSystemProperties systemProperties = new SetSystemProperties((SOCKET_TIMEOUT_SYSTEM_PROPERTY): "500")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/worker/TestWorkerTest.groovy

    import org.gradle.process.internal.worker.WorkerProcessContext
    import org.gradle.test.fixtures.concurrent.ConcurrentSpec
    import org.gradle.util.SetSystemProperties
    import org.junit.Rule
    
    public class TestWorkerTest extends ConcurrentSpec {
        @Rule SetSystemProperties properties = new SetSystemProperties()
        def workerContext = Mock(WorkerProcessContext)
        def connection = Mock(ObjectConnection)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. platforms/core-runtime/daemon-protocol/src/test/groovy/org/gradle/configuration/GradleLauncherMetaDataTest.groovy

     */
    package org.gradle.configuration
    
    import spock.lang.Specification
    import org.junit.Rule
    import org.gradle.util.SetSystemProperties
    
    class GradleLauncherMetaDataTest extends Specification {
        @Rule public final SetSystemProperties sysProps = new SetSystemProperties()
    
        def usesSystemPropertyToDetermineApplicationName() {
            System.setProperty("org.gradle.appname", "some-gradle-launcher")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:55:06 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/initialization/DefaultGradlePropertiesControllerTest.groovy

            when:
            controller.loadGradlePropertiesFrom(settingsDir, setSystemProperties)
    
            then:
            (setSystemProperties ? "userSystemValue" : null) == System.getProperty("userSystemProp")
            (setSystemProperties ? "settingsSystemValue2" : null) == System.getProperty("settingsSystemProp2")
            (setSystemProperties ? "systemPropArgValue" : null) == System.getProperty("systemPropArgKey")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 06 11:52:10 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  9. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishLoggingIntegTest.groovy

    
    import org.gradle.integtests.fixtures.publish.maven.AbstractMavenPublishIntegTest
    import org.gradle.util.SetSystemProperties
    import org.junit.Rule
    
    class MavenPublishLoggingIntegTest extends AbstractMavenPublishIntegTest {
    
        @Rule
        SetSystemProperties sysProp = new SetSystemProperties()
    
        def setup() {
            using m2
            settingsFile << "rootProject.name = 'root'"
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/JavaSystemPropertiesHttpTimeoutSettingsTest.groovy

    class JavaSystemPropertiesHttpTimeoutSettingsTest extends Specification {
    
        @Rule
        SetSystemProperties setSystemProperties = new SetSystemProperties()
    
        def "can retrieve default values"() {
            JavaSystemPropertiesHttpTimeoutSettings settings = new JavaSystemPropertiesHttpTimeoutSettings()
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top