Class componenttest.annotation.processor.TestServletProcessorTests

5

tests

0

failures

0

ignored

0.049s

duration

100%

successful

Tests

Test Duration Result
testHttpServletCheck 0.004s passed
testNonServer 0.001s passed
testNotStaticServer 0.018s passed
testPrivateServer 0.001s 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

Jul 01, 2024 12:27:30 PM componenttest.annotation.processor.TestServletProcessor getServletTests
INFO: Added 2 test methods from class componenttest.annotation.processor.TestServletProcessorTests$ServletTestClass$ValidTestServlet