.. java:import:: org.apiguardian.api API .. java:import:: org.junit.jupiter.api.extension AfterAllCallback .. java:import:: org.junit.jupiter.api.extension AfterEachCallback .. java:import:: org.junit.jupiter.api.extension BeforeAllCallback .. java:import:: org.junit.jupiter.api.extension BeforeEachCallback .. java:import:: org.junit.jupiter.api.extension ExtensionContext .. java:import:: ru.bitec.gs.automation.environment AbstractTestEnvironment .. java:import:: ru.bitec.gs.automation.environment AbstractTestEnvironment.ActionConsumer GsAutomationJUnitExtension ========================== .. java:package:: ru.bitec.gs.automation.junit :noindex: .. java:type:: class GsAutomationJUnitExtension extends GsAutomationJUnitInterceptor implements BeforeAllCallback, AfterAllCallback, BeforeEachCallback, AfterEachCallback .. versionadded:: 1.1.1 Интеграция GS-Automation и jUnit 5 путем расширения реализацией колбеков и интерцептеров. .. seealso:: | :java:ref:`BeforeAllCallback ` | :java:ref:`AfterAllCallback ` | :java:ref:`BeforeEachCallback ` | :java:ref:`AfterEachCallback ` | :java:ref:`InvocationInterceptor ` | :java:ref:`GsAutomationJUnitEnvironment ` | :java:ref:`WithGsAutomationJUnitExtension ` Constructors ------------ GsAutomationJUnitExtension ^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:constructor:: GsAutomationJUnitExtension() :outertype: GsAutomationJUnitExtension Methods ------- afterAll ^^^^^^^^ .. java:method:: @Override public void afterAll(ExtensionContext extensionContext) :outertype: GsAutomationJUnitExtension Метод afterAll выполнятся для объекта любого класса, унаследованного от :java:ref:`GsAutomationJUnitEnvironment `, после всех тестов. afterEach ^^^^^^^^^ .. java:method:: @Override public void afterEach(ExtensionContext context) :outertype: GsAutomationJUnitExtension Метод afterEach выполнятся для объекта любого класса, унаследованного от :java:ref:`GsAutomationJUnitEnvironment `, после каждого теста. applyAction ^^^^^^^^^^^ .. java:method:: @Override protected final void applyAction(ExtensionContext extensionContext, AbstractTestEnvironment.ActionConsumer actionConsumer) :outertype: GsAutomationJUnitExtension beforeAll ^^^^^^^^^ .. java:method:: @Override public void beforeAll(ExtensionContext context) :outertype: GsAutomationJUnitExtension Метод beforeAll выполнятся для объекта любого класса, унаследованного от :java:ref:`GsAutomationJUnitEnvironment `, перед всеми тестами. beforeEach ^^^^^^^^^^ .. java:method:: @Override public void beforeEach(ExtensionContext context) :outertype: GsAutomationJUnitExtension Метод beforeEach выполнятся для объекта любого класса, унаследованного от :java:ref:`GsAutomationJUnitEnvironment `, перед каждым тестом.