- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 834 for testrule (0.21 sec)
-
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedForIsolatedProjectsRule.groovy
import org.jetbrains.annotations.NotNull import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement /** * JUnit Rule supporting the {@link ToBeFixedForIsolatedProjects} annotation. */ class ToBeFixedForIsolatedProjectsRule implements TestRule { @Override Statement apply(@NotNull Statement base, @NotNull Description description) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 09:04:13 UTC 2024 - 1.4K bytes - Viewed (0) -
okhttp-testing-support/src/test/kotlin/okhttp3/OkHttpClientTestRuleTest.kt
} @Test fun uncaughtException() { val testRule = OkHttpClientTestRule() testRule.beforeEach(extensionContext) val thread = object : Thread() { override fun run() { throw RuntimeException("boom!") } } thread.start() thread.join() assertFailsWith<AssertionError> { testRule.afterEach(extensionContext) }.also { expected ->
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.7K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/ReleasingPortAllocator.groovy
* limitations under the License. */ package org.gradle.util.ports import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement /** * A TestRule that releases any assigned ports after the test executes. */ class ReleasingPortAllocator implements PortAllocator, TestRule { final PortAllocator delegate List<Integer> portsAllocated = new ArrayList<>()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 1.8K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestIdProvider.groovy
* limitations under the License. */ package org.gradle.performance.fixture import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement class PerformanceTestIdProvider implements TestRule { private testSpec private String methodName private String className PerformanceTestIdProvider() {} @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedForConfigurationCacheRule.groovy
* limitations under the License. */ package org.gradle.integtests.fixtures import org.gradle.integtests.fixtures.executer.GradleContextualExecuter import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement import static org.gradle.integtests.fixtures.ToBeFixedForConfigurationCacheExtension.isEnabledBottomSpec
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 09:04:13 UTC 2024 - 2.1K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/precondition/PreconditionVerifier.groovy
*/ package org.gradle.test.precondition import org.jetbrains.annotations.NotNull import org.junit.Assume import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement class PreconditionVerifier implements TestRule { @Override Statement apply(@NotNull Statement base, @NotNull Description description) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.8K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java
prefix = className; } return prefix; } public TestFile file(Object... path) { return getTestDirectory().file(path); } public TestFile createFile(Object... path) { return file(path).createFile(); } public TestFile createDir(Object... path) { return file(path).createDir(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.7K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/util/SetSystemProperties.java
*/ package org.gradle.util; import org.junit.rules.TestRule; import org.junit.runner.Description; import org.junit.runners.model.Statement; import java.util.HashMap; import java.util.Map; import java.util.Properties; /** * A JUnit rule which restores system properties at the end of the test. */ public class SetSystemProperties implements TestRule { private final Properties 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) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/jvm/JDWPUtil.groovy
import org.gradle.util.ports.FixedAvailablePortAllocator import org.junit.Assume import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement /** * A utility for communicating with a VM in debug mode using JDWP. */ class JDWPUtil implements TestRule { String host Integer port def vm def connection def connectionArgs JDWPUtil() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/TestLogHandler.kt
import org.junit.jupiter.api.extension.ExtensionContext import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement /** * A log handler that records which log messages were published so that a calling test can make * assertions about them. */ class TestLogHandler( private val logger: Logger, ) : TestRule, BeforeEachCallback, AfterEachCallback {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0)