Class componenttest.annotation.processor.TestServletProcessorTests

5

tests

0

failures

0

ignored

0.037s

duration

100%

successful

Tests

Test Duration Result
testHttpServletCheck 0.004s passed
testNonServer 0.001s passed
testNotStaticServer 0.009s passed
testPrivateServer 0s passed
testProcessorCount 0.023s 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 29, 2024 4:24:58 AM componenttest.annotation.processor.TestServletProcessor getServletTests
INFO: Added 2 test methods from class componenttest.annotation.processor.TestServletProcessorTests$ServletTestClass$ValidTestServlet