Search in sources :

Example 1 with EvoSuiteAssertionOnly

use of org.evosuite.runtime.annotation.EvoSuiteAssertionOnly in project evosuite by EvoSuite.

the class EvoHttpServletRequest method isAsyncSupported.

@EvoSuiteAssertionOnly
@Override
public boolean isAsyncSupported() {
    Servlet sut = EvoServletState.getServlet();
    WebServlet annotation = sut.getClass().getAnnotation(WebServlet.class);
    if (annotation == null) {
        // TODO: unsure if really correct. need more investigation
        return false;
    }
    return annotation.asyncSupported();
}
Also used : WebServlet(javax.servlet.annotation.WebServlet) WebServlet(javax.servlet.annotation.WebServlet) EvoSuiteAssertionOnly(org.evosuite.runtime.annotation.EvoSuiteAssertionOnly)

Aggregations

WebServlet (javax.servlet.annotation.WebServlet)1 EvoSuiteAssertionOnly (org.evosuite.runtime.annotation.EvoSuiteAssertionOnly)1