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