Testsuite: org.apache.catalina.valves.TestCrawlerSessionManagerValve Tests run: 5, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 1.86 sec Testcase: testCrawlerIpsPositive took 1.813 sec FAILED Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 junit.framework.AssertionFailedError: Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:46) at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:100) at org.easymock.internal.ClassProxyFactory$MockMethodInterceptor.interceptSuperCallable(ClassProxyFactory.java:104) at org.apache.catalina.connector.Request$$$EasyMock$1.getHost(Unknown Source) at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessionManagerValve.java:187) at org.apache.catalina.valves.TestCrawlerSessionManagerValve.testCrawlerIpsPositive(TestCrawlerSessionManagerValve.java:66) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Testcase: testCrawlerIpsNegative took 0.006 sec FAILED Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 1, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 junit.framework.AssertionFailedError: Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 1, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:46) at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:100) at org.easymock.internal.ClassProxyFactory$MockMethodInterceptor.interceptSuperCallable(ClassProxyFactory.java:104) at org.apache.catalina.connector.Request$$$EasyMock$1.getHost(Unknown Source) at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessionManagerValve.java:187) at org.apache.catalina.valves.TestCrawlerSessionManagerValve.testCrawlerIpsNegative(TestCrawlerSessionManagerValve.java:82) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Testcase: testCrawlerMultipleHostsHostAware took 0.001 sec FAILED Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 junit.framework.AssertionFailedError: Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:46) at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:100) at org.easymock.internal.ClassProxyFactory$MockMethodInterceptor.interceptSuperCallable(ClassProxyFactory.java:104) at org.apache.catalina.connector.Request$$$EasyMock$1.getHost(Unknown Source) at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessionManagerValve.java:187) at org.apache.catalina.valves.TestCrawlerSessionManagerValve.verifyCrawlingLocalhost(TestCrawlerSessionManagerValve.java:145) at org.apache.catalina.valves.TestCrawlerSessionManagerValve.testCrawlerMultipleHostsHostAware(TestCrawlerSessionManagerValve.java:95) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Testcase: testCrawlerMultipleContextsContextAware took 0.004 sec FAILED Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 junit.framework.AssertionFailedError: Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:46) at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:100) at org.easymock.internal.ClassProxyFactory$MockMethodInterceptor.interceptSuperCallable(ClassProxyFactory.java:104) at org.apache.catalina.connector.Request$$$EasyMock$1.getHost(Unknown Source) at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessionManagerValve.java:187) at org.apache.catalina.valves.TestCrawlerSessionManagerValve.verifyCrawlingContext(TestCrawlerSessionManagerValve.java:159) at org.apache.catalina.valves.TestCrawlerSessionManagerValve.testCrawlerMultipleContextsContextAware(TestCrawlerSessionManagerValve.java:107) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Testcase: testCrawlersSessionIdIsRemovedAfterSessionExpiry took 0.019 sec FAILED Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 junit.framework.AssertionFailedError: Unexpected method call EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): EasyMock for class org.apache.catalina.connector.Request -> Request.getHost(): expected: 1, actual: 2 EasyMock for class org.apache.catalina.connector.Request -> Request.getSession(false): expected: 2, actual: 0 EasyMock for class org.apache.catalina.connector.Request -> Request.getHeaders("user-agent"): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:46) at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:100) at org.easymock.internal.ClassProxyFactory$MockMethodInterceptor.interceptSuperCallable(ClassProxyFactory.java:104) at org.apache.catalina.connector.Request$$$EasyMock$1.getHost(Unknown Source) at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessionManagerValve.java:187) at org.apache.catalina.valves.TestCrawlerSessionManagerValve.testCrawlersSessionIdIsRemovedAfterSessionExpiry(TestCrawlerSessionManagerValve.java:126) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)