Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for matchesRegexp (0.22 sec)

  1. subprojects/core/src/test/groovy/org/gradle/util/MatchersTest.groovy

    import spock.lang.Specification
    
    import java.util.regex.Pattern
    
    import static org.gradle.util.Matchers.matchesRegexp
    
    class MatchersTest extends Specification {
    
        def "matches regex"() {
            expect:
            matchesRegexp("foo.*").matches(match)
    
            and:
            !matchesRegexp(Pattern.compile("foo.*")).matches(noMatch)
    
            where:
            match     | noMatch
            "foo"     | "fo"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 22 14:16:41 UTC 2013
    - 1.1K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/RecoverFromBrokenResolutionIntegrationTest.groovy

    import org.gradle.test.fixtures.server.http.MavenHttpModule
    import org.gradle.test.fixtures.server.http.MavenHttpRepository
    import org.hamcrest.CoreMatchers
    
    import static org.gradle.util.Matchers.matchesRegexp
    
    @IntegrationTestTimeout(120)
    class RecoverFromBrokenResolutionIntegrationTest extends AbstractHttpDependencyResolutionTest {
    
        MavenHttpRepository repo
        MavenHttpModule module
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DependencyResolutionFailure.groovy

            failure.assertThatCause(matchesRegexp("Could not resolve all (dependencies|artifacts|files) for configuration '${Pattern.quote(configuration)}'."))
            this
        }
    
        DependencyResolutionFailure assertFailedDependencyRequiredBy(String dependency) {
            failure.assertThatCause(matchesRegexp("(?ms).*Required by:\\s+$dependency.*"))
            this
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/TextResourceScriptSourceTest.java

            ScriptSource source = forFile(scriptFile);
            assertThat(source.getClassName(), matchesRegexp("build_[0-9a-z]+"));
        }
    
        @Test
        public void generatesClassNameFromFileNameByRemovingExtensionAndAddingHashOfJarURL() throws Exception {
            ScriptSource source = forUri(createJar());
            assertThat(source.getClassName(), matchesRegexp("build_[0-9a-z]+"));
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 15 01:04:05 UTC 2023
    - 12K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestListenerIntegrationTest.groovy

            containsLine(result.getOutput(), "FINISH [Gradle Test Run :test] [Gradle Test Run :test] [FAILURE] [4]")
    
            containsLine(result.getOutput(), matchesRegexp("START \\[Gradle Test Executor \\d+\\] \\[Gradle Test Executor \\d+\\]"))
            containsLine(result.getOutput(), matchesRegexp("FINISH \\[Gradle Test Executor \\d+\\] \\[Gradle Test Executor \\d+\\] \\[FAILURE\\] \\[4\\]"))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/AbstractHttpsRepoResolveIntegrationTest.groovy

    import org.gradle.test.fixtures.keystore.TestKeyStore
    import org.gradle.test.fixtures.server.http.AuthScheme
    import org.junit.Rule
    
    import static org.gradle.util.Matchers.containsText
    import static org.gradle.util.Matchers.matchesRegexp
    
    abstract class AbstractHttpsRepoResolveIntegrationTest extends AbstractHttpDependencyResolutionTest {
        @Rule TestResources resources = new TestResources(temporaryFolder)
        TestKeyStore keyStore
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/util/Matchers.java

    import java.io.StringReader;
    import java.util.regex.Pattern;
    
    import static org.hamcrest.CoreMatchers.equalTo;
    
    public class Matchers {
    
        @Factory
        public static <T extends CharSequence> Matcher<T> matchesRegexp(final String pattern) {
            return new BaseMatcher<T>() {
                @Override
                public boolean matches(Object o) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformValuesInjectionIntegrationTest.groovy

    import org.gradle.process.ExecOperations
    import spock.lang.Issue
    
    import java.util.concurrent.atomic.AtomicInteger
    
    import static org.gradle.util.Matchers.matchesRegexp
    import static org.hamcrest.Matchers.containsString
    
    class ArtifactTransformValuesInjectionIntegrationTest extends AbstractDependencyResolutionTest implements ArtifactTransformTestFixture, ValidationMessageChecker {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 11:12:24 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEncryptionIntegrationTest.groovy

    import java.util.stream.Stream
    
    import static org.gradle.initialization.IGradlePropertiesLoader.ENV_PROJECT_PROPERTIES_PREFIX
    import static org.gradle.util.Matchers.containsLine
    import static org.gradle.util.Matchers.matchesRegexp
    
    class ConfigurationCacheEncryptionIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
        TestFile keyStoreDir
        String encryptionKeyText
        String encryptionKeyAsBase64
    
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestVerificationFailureHandlingIntegrationTest.groovy

                    jvmArgs '-XX:UnknownArgument'
                }
            '''
        }
    
        void assertFatalTestExecutionError() {
            failure.assertThatCause(Matchers.matchesRegexp("Process 'Gradle Test Executor \\d+' finished with non-zero exit value \\d+"))
        }
    
        def withTestVerificationFailure() {
            file('src/test/java/example/UnitTestWithVerificationFailure.java').java '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top