Class BanServletTest

java.lang.Object
com.openmeet.webapp.test.BanServletTest

public final class BanServletTest extends Object
Test class for BanServlet. It tests the doPost method.
  • Constructor Details

    • BanServletTest

      public BanServletTest()
  • Method Details

    • setUp

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

      @BeforeEach public void authenticate()
      Authenticates the user.
    • clear

      @AfterEach public void clear() throws SQLException
      Clears the database.
      Throws:
      SQLException - If an error occurs.
    • testInvalidDescriptionLengthInferior

      @Test @Order(1) public void testInvalidDescriptionLengthInferior() throws IOException
      Tests the TC_1.1_1 Test case. It tests the invalid description length.
      Throws:
      IOException - If an error occurs.
    • testInvalidDescriptionLengthSuperior

      @Test @Order(2) public void testInvalidDescriptionLengthSuperior() throws IOException
      Tests the TC_1.1_1 Test case. It tests the invalid description length.
      Throws:
      IOException - If an error occurs.
    • testInvalidEndTime

      @Test @Order(3) public void testInvalidEndTime() throws IOException
      Tests the TC_1.2_1 Test case. It tests the invalid end time.
      Throws:
      IOException - If an error occurs.
    • testCorrectBan

      @Test @Order(4) public void testCorrectBan() throws IOException
      Tests the TC_1.2_2 Test case.
      Throws:
      IOException - If an error occurs.