Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for afterMethod (0.46 sec)

  1. platforms/jvm/testing-jvm-infrastructure/src/testFixtures/groovy/org/gradle/api/internal/tasks/testing/testng/TestNGTestClassProcessorData.groovy

        public void skipMe() {}
    }
    
    public class ATestNGClass {
        @BeforeClass public void beforeClass() {}
        @AfterClass public void afterClass() {}
        @BeforeMethod public void beforeMethod() {}
        @AfterMethod public void afterMethod() {}
        @Test public void ok() {}
        @Test(enabled = false) public void skipped() {}
    }
    
    public class ATestNGClassWithBeforeAndAfter {
        @BeforeClass public void beforeClass() { assert false }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testing/testng-groups/groovy/src/test/java/org/gradle/testng/SimpleUnitTest.java

    package org.gradle.testng;
    
    import org.testng.annotations.BeforeMethod;
    import org.testng.annotations.Test;
    import org.testng.annotations.AfterMethod;
    import static org.testng.Assert.*;
    
    public class SimpleUnitTest{
        @Test(groups = { "unitTests" })
        public void simpleUnitTest(){
            assertEquals(true, true);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 328 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testing/testng-groups/kotlin/src/test/java/org/gradle/testng/SimpleIntegrationTest.java

    package org.gradle.testng;
    
    import org.testng.annotations.BeforeMethod;
    import org.testng.annotations.Test;
    import org.testng.annotations.AfterMethod;
    import static org.testng.Assert.*;
    
    public class SimpleIntegrationTest{
        @Test(groups = { "integrationTests" })
        public void simpleIntegrationTest(){
            assertEquals(true, true);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 349 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testing/testng-suitexmlbuilder/groovy/src/test/java/org/gradle/testng/UserImplTest.java

    package org.gradle.testng;
    
    import org.testng.annotations.BeforeMethod;
    import org.testng.annotations.Test;
    import org.testng.annotations.AfterMethod;
    import static org.testng.Assert.*;
    
    public class UserImplTest
    {
        private UserImpl user;
    
        private final String okFirstName = "Tom";
        private final String okLastName = "Eyckmans";
    
        @BeforeMethod
        public void setUp() throws Exception
        {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 785 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/testing/testng-groups/groovy/src/test/java/org/gradle/testng/SimpleIntegrationTest.java

    package org.gradle.testng;
    
    import org.testng.annotations.BeforeMethod;
    import org.testng.annotations.Test;
    import org.testng.annotations.AfterMethod;
    import static org.testng.Assert.*;
    
    public class SimpleIntegrationTest{
        @Test(groups = { "integrationTests" })
        public void simpleIntegrationTest(){
            assertEquals(true, true);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 349 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/testing/testng-groups/kotlin/src/test/java/org/gradle/testng/SimpleUnitTest.java

    package org.gradle.testng;
    
    import org.testng.annotations.BeforeMethod;
    import org.testng.annotations.Test;
    import org.testng.annotations.AfterMethod;
    import static org.testng.Assert.*;
    
    public class SimpleUnitTest{
        @Test(groups = { "unitTests" })
        public void simpleUnitTest(){
            assertEquals(true, true);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 328 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/jvm/java_testing.adoc

    ] — you can't specify the test execution order. However, what you _can_ do is control whether all aspects of a test — including its associated `@BeforeXXX` and `@AfterXXX` methods, such as those annotated with `@Before/AfterClass` and `@Before/AfterMethod` — are executed before the next test starts. You do this by setting the link:{javadocPath}/org/gradle/api/tasks/testing/testng/TestNGOptions.html#getPreserveOrder--[TestNGOptions.getPreserveOrder()] property to `true`. If you set it to `false`,...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 16:24:12 UTC 2024
    - 53.1K bytes
    - Viewed (0)
Back to top