Class componenttest.annotation.processor.TestServletProcessorTests

5

tests

0

failures

0

ignored

0.039s

duration

100%

successful

Tests

Test Duration Result
testHttpServletCheck 0.004s passed
testNonServer 0s passed
testNotStaticServer 0.010s passed
testPrivateServer 0s passed
testProcessorCount 0.025s passed

Standard output

Caught: java.lang.IllegalArgumentException: The servlet referenced by the @TestServlet(servlet=InvalidTestServlet.class) annotation is not a subclass of javax.servlet.http.HttpServlet nor jakarta.servlet.http.HttpServlet. When using the @TestServlet annotation make sure to declare a servlet class that extends either javax.servlet.http.HttpServlet or jakarta.servlet.http.HttpServlet

Standard error

Jun 25, 2024 8:28:10 PM componenttest.annotation.processor.TestServletProcessor getServletTests
INFO: Added 2 test methods from class componenttest.annotation.processor.TestServletProcessorTests$ServletTestClass$ValidTestServlet