Class componenttest.annotation.processor.TestServletProcessorTests

5

tests

0

failures

0

ignored

0.050s

duration

100%

successful

Tests

Test Duration Result
testHttpServletCheck 0.006s passed
testNonServer 0.001s passed
testNotStaticServer 0.015s passed
testPrivateServer 0.001s passed
testProcessorCount 0.027s 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

Feb 06, 2025 8:26:44 PM componenttest.annotation.processor.TestServletProcessor getServletTests
INFO: Added 2 test methods from class componenttest.annotation.processor.TestServletProcessorTests$ServletTestClass$ValidTestServlet