Class AuthControllerTest

java.lang.Object
ru.averkiev.greenchat_auth.controllers.AuthControllerTest

@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) public class AuthControllerTest extends Object
Тестовый класс для проверки функциональности AuthController
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Проверяет получение нового access токена на основе переданного refresh токена.
    void
    Проверяет обновление access и refresh токенов на основе переданного refresh токена.
    void
    Проверяет аутентификацию пользователя при входе в систему.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthControllerTest

      public AuthControllerTest()
  • Method Details

    • setup

      @BeforeEach public void setup()
    • testLogin

      @Test public void testLogin() throws Exception
      Проверяет аутентификацию пользователя при входе в систему. Ожидается успешный ответ с access и refresh токенами.
      Throws:
      Exception
    • testGetNewAccessToken

      @Test public void testGetNewAccessToken() throws Exception
      Проверяет получение нового access токена на основе переданного refresh токена. Ожидается успешный ответ включающий в себя access токен и значение null вместо refresh токена.
      Throws:
      Exception
    • testGetNewRefreshToken

      @Test public void testGetNewRefreshToken() throws Exception
      Проверяет обновление access и refresh токенов на основе переданного refresh токена. Ожидается успешный ответ с access и refresh токенами.
      Throws:
      Exception