Package com.openmeet.webapp.test
Class BanServletTest
java.lang.Object
com.openmeet.webapp.test.BanServletTest
Test class for BanServlet. It tests the doPost method.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BanServletTest
public BanServletTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() throws jakarta.servlet.ServletExceptionSets up the test environment.- Throws:
jakarta.servlet.ServletException- If an error occurs.
-
authenticate
@BeforeEach public void authenticate()Authenticates the user. -
clear
Clears the database.- Throws:
SQLException- If an error occurs.
-
testInvalidDescriptionLengthInferior
Tests the TC_1.1_1 Test case. It tests the invalid description length.- Throws:
IOException- If an error occurs.
-
testInvalidDescriptionLengthSuperior
Tests the TC_1.1_1 Test case. It tests the invalid description length.- Throws:
IOException- If an error occurs.
-
testInvalidEndTime
Tests the TC_1.2_1 Test case. It tests the invalid end time.- Throws:
IOException- If an error occurs.
-
testCorrectBan
Tests the TC_1.2_2 Test case.- Throws:
IOException- If an error occurs.
-