I cannot share the whole trace for client confidentiality. But in general, below are the configurations:
Working configuration:
<maven.compiler.source>13</maven.compiler.source>
<maven.compiler.target>13</maven.compiler.target>
<maven.compiler.version>3.8.1</maven.compiler.version>
<jacoco.version>0.8.3</jacoco.version>
After changing it to
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.version>3.8.1</maven.compiler.version>
<jacoco.version>0.8.11</jacoco.version>
It is giving below error while creating
new MockUp<Modelclass>() {
@Mock
HttpResponseMessage buildResponse(HttpStatus status, String message) {
return responseMessage;
}
};
[ERROR] RequestHandlerTest.testExecuteA » ArrayIndexOutOfBounds Index 3847 out of bounds for length 1874
[ERROR] RequestHandlerTest.testExecuteAWithException » ArrayIndexOutOfBounds Index 3847 out of bounds for length 1874
[ERROR] RequestHandlerTest.testExecuteB » ArrayIndexOutOfBounds Index 3847 out of bounds for length 1874
[ERROR] RequestHandlerTest.testExecuteBWithException » ArrayIndexOutOfBounds Index 3847 out of bounds for length 1874
[ERROR] testRunEmptyBody:52 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] testRunEmptyHeader:73 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] testRunEmptyHeader:73 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] testRunEmpty:125 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] testRunEmpty:125 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] testRunInvalid:156 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] testRunInvalidXml:94 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] testRunInvalidateXml:195 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 146
[ERROR] mock_env_vars:41 » ArrayIndexOutOfBounds Index 51966 out of bounds for length 165