# Class PasswordRecoveryServiceTest

java.lang.Object
PasswordRecoveryServiceTest

public class PasswordRecoveryServiceTest extends Object
Test class for PasswordRecoveryService

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PasswordRecoveryServiceTest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `emailIsNotPresent()`
  Tests the TC_3.1_1 Test case.
  `void`
  `passwordRecovered()`
  Tests the TC_3.1_2 Test case.
  `void`
  `setUp()`
  Sets up the test environment.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PasswordRecoveryServiceTest

    public PasswordRecoveryServiceTest()

- ## Method Details

  - ### setUp

    @BeforeEach public void setUp() throws IOException, jakarta.servlet.ServletException
    Sets up the test environment.
    Throws:
      `IOException` - If an error occurs.
      `jakarta.servlet.ServletException` - If an error occurs.

  - ### emailIsNotPresent

    @Test @Order(1) public void emailIsNotPresent() throws IOException
    Tests the TC_3.1_1 Test case. It tests the presence of the email in the database.
    Throws:
      `IOException`

  - ### passwordRecovered

    @Test @Order(2) public void passwordRecovered() throws IOException
    Tests the TC_3.1_2 Test case.
    Throws:
      `IOException`