Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for beforeAll (0.4 sec)

  1. platforms/documentation/docs/src/snippets/testing/junitplatform-jupiter/groovy/src/test/java/org/gradle/junitplatform/JupiterTest.java

            System.out.println("This will be repeated!");
        }
    
        @BeforeEach
        public void beforeEach() {
            System.out.println("This will be called before each method!");
        }
    
        @BeforeAll
        public static void beforeAll() {
            System.out.println("This will be called before all methods!");
        }
    
        @Disabled
        @Test
        public void disabled() {
            throw new RuntimeException("This won't happen!");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 945 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testing/junitplatform-jupiter/kotlin/src/test/java/org/gradle/junitplatform/JupiterTest.java

            System.out.println("This will be repeated!");
        }
    
        @BeforeEach
        public void beforeEach() {
            System.out.println("This will be called before each method!");
        }
    
        @BeforeAll
        public static void beforeAll() {
            System.out.println("This will be called before all methods!");
        }
    
        @Disabled
        @Test
        public void disabled() {
            throw new RuntimeException("This won't happen!");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 945 bytes
    - Viewed (0)
  3. mockwebserver-junit5/src/test/java/mockwebserver3/junit5/internal/ExtensionLifecycleTest.kt

        server: MockWebServer,
      ) {
        assertThat(server).isSameInstanceAs(instanceServer)
      }
    
      companion object {
        private lateinit var staticServer: MockWebServer
    
        @JvmStatic
        @BeforeAll
        fun beforeAll(server: MockWebServer) {
          staticServer = server
          assertThat(staticServer.started).isTrue()
        }
    
        @JvmStatic
        @AfterAll
        fun afterAll(
          server: MockWebServer,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/SuppressedExceptionTestingIntegrationTest.groovy

                    }
    
                }
    
                class ThrowingBeforeAllCallback implements BeforeAllCallback {
                    @Override
                    public void beforeAll(ExtensionContext context) {
                        throw new IllegalStateException("beforeAll callback");
                    }
                }
    
                class ThrowingAfterAllCallback implements AfterAllCallback {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java

    import org.apache.maven.api.model.Plugin;
    import org.apache.maven.api.model.PluginExecution;
    import org.junit.jupiter.api.BeforeAll;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    class MavenModelVersionTest {
    
        private static Model model;
    
        @BeforeAll
        static void setup() throws Exception {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Oct 16 13:44:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

     *
     * Specifically while junit instances passes into test constructor
     * are typically shares amongst all tests, a fresh instance will be
     * received here. Use with @BeforeAll and @AfterAll, is not supported.
     *
     * There are 3 ids for instances
     * - The test instance default (passed into constructor)
     * - The test lifecycle default (passed into test method, plus @BeforeEach, @AfterEach)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformIntegrationTest.groovy

                .assertTestFailed(failedTestName, containsString(location))
    
            where:
            location     | beforeStatement      | afterStatement      | successCount | failedTestName
            '@BeforeAll' | 'fail("@BeforeAll")' | ''                  | 0            | "initializationError"
            '@AfterAll'  | ''                   | 'fail("@AfterAll")' | 1            | "executionError"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterMultiVersionTest.groovy

                    import static org.junit.jupiter.api.Assumptions.*;
                """.stripIndent()
            }
    
            @Override
            String getBeforeClassAnnotation() {
                return "@BeforeAll"
            }
    
            @Override
            String getAfterClassAnnotation() {
                return "@AfterAll"
            }
    
            @Override
            String getBeforeTestAnnotation() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/it/CrudTestBase.java

    import java.util.Set;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.junit.jupiter.api.AfterAll;
    import org.junit.jupiter.api.AfterEach;
    import org.junit.jupiter.api.BeforeAll;
    import org.junit.jupiter.api.BeforeEach;
    
    import io.restassured.RestAssured;
    import io.restassured.path.json.JsonPath;
    import io.restassured.response.Response;
    
    public abstract class CrudTestBase extends ITBase {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

    import org.codelibs.core.lang.ThreadUtil;
    import org.codelibs.fess.it.CrawlTestBase;
    import org.junit.jupiter.api.AfterAll;
    import org.junit.jupiter.api.AfterEach;
    import org.junit.jupiter.api.BeforeAll;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Tag;
    import org.junit.jupiter.api.Test;
    
    import io.restassured.RestAssured;
    import io.restassured.path.json.JsonPath;
    
    /**
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top