Skip to content

Commit

Permalink
[Testsuite]
Browse files Browse the repository at this point in the history
Corretti test segnalati su ambiente CI Jenkins da SpotBugs
  • Loading branch information
andreapoli committed Mar 17, 2024
1 parent 4e4beab commit 4dee8e8
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -1136,15 +1136,15 @@ private static void verificaFile(String dirName,String dirFile,

String fileRequest = DIR_TMP+""+"fileTrace-"+ENV_VALUE_1+".request"+""+fileSuffix;
String request = getContentFile(fileRequest,false, true);
String sizeRequest = Utilities.convertBytesToFormatString(request.length());
String sizeRequest = request!=null ? Utilities.convertBytesToFormatString(request.length()) : null;

String fileRequestCompress = DIR_TMP+dirCompress+"fileTrace-"+ENV_VALUE_1+".request"+dateFileCompress+fileGzSuffix;
String requestCompress = getContentFile(fileRequestCompress,true,compressExpected);


String fileRequestBody = DIR_TMP+""+"fileTrace-"+ENV_VALUE_1+".requestBody"+""+fileSuffix;
String requestBody = getContentFile(fileRequestBody,false,true);
String sizeRequestBody = Utilities.convertBytesToFormatString(requestBody.length());
String sizeRequestBody = requestBody!=null ? Utilities.convertBytesToFormatString(requestBody.length()) : null;

String fileRequestBodyCompress = DIR_TMP+dirCompress+"fileTrace-"+ENV_VALUE_1+".requestBody"+dateFileCompress+fileGzSuffix;
String requestBodyCompress = null;
Expand All @@ -1158,7 +1158,7 @@ private static void verificaFile(String dirName,String dirFile,

String fileResponse = DIR_TMP+""+"fileTrace-"+ENV_VALUE_1+".response"+""+fileSuffix;
String response = getContentFile(fileResponse,false, true);
String sizeResponse = Utilities.convertBytesToFormatString(response.length());
String sizeResponse = response!=null ? Utilities.convertBytesToFormatString(response.length()) : null;

String fileResponseCompress = DIR_TMP+dirCompress+"fileTrace-"+ENV_VALUE_1+".response"+dateFileCompress+fileGzSuffix;
String responseCompress = getContentFile(fileResponseCompress,true,compressExpected);
Expand All @@ -1170,7 +1170,7 @@ private static void verificaFile(String dirName,String dirFile,

String fileResponseBody = DIR_TMP+""+"fileTrace-"+ENV_VALUE_1+".responseBody"+""+fileSuffix;
String responseBody = getContentFile(fileResponseBody,false, true);
String sizeResponseBody = Utilities.convertBytesToFormatString(responseBody.length());
String sizeResponseBody = responseBody!=null ? Utilities.convertBytesToFormatString(responseBody.length()) : null;

String fileResponseBodyCompress = DIR_TMP+dirCompress+"fileTrace-"+ENV_VALUE_1+".responseBody"+dateFileCompress+fileGzSuffix;
String responseBodyCompress = getContentFile(fileResponseBodyCompress,true,compressExpected);
Expand Down Expand Up @@ -1402,7 +1402,7 @@ private static void verificaFileTrackingPhase(String dirName,String dirFile,

String fileRequest = DIR_TMP+""+"fileTrace-"+ENV_VALUE_1+"."+topicName+""+""+fileSuffix;
String request = getContentFile(fileRequest,false, fileExpected);
String sizeRequest = Utilities.convertBytesToFormatString(request.length());
String sizeRequest = request!=null ? Utilities.convertBytesToFormatString(request.length()) : null;

String fileRequestCompress = DIR_TMP+dirCompress+"fileTrace-"+ENV_VALUE_1+"."+topicName+""+dateFileCompress+fileGzSuffix;
String requestCompress = getContentFile(fileRequestCompress,true,compressExpected);
Expand Down Expand Up @@ -1498,7 +1498,7 @@ private static void verificaFileEncrypted(String dirName,String dirFile, String

String fileRequest = DIR_TMP+""+"fileTrace-"+ENV_VALUE_1+"."+tipoTest+""+""+fileSuffix;
String request = getContentFile(fileRequest,false, true);
String sizeRequest = Utilities.convertBytesToFormatString(request.length());
String sizeRequest = request!=null ? Utilities.convertBytesToFormatString(request.length()) : null;

String fileRequestCompress = DIR_TMP+dirCompress+"fileTrace-"+ENV_VALUE_1+"."+tipoTest+""+dateFileCompress+fileGzSuffix;
String requestCompress = getContentFile(fileRequestCompress,true,compressExpected);
Expand Down

0 comments on commit 4dee8e8

Please sign in to comment.