@@ -2148,7 +2148,7 @@ void testNAttachments_NewEntity() throws IOException {
21482148 response = api .saveEntityDraft (appUrl , entityName , srvpath , entityID4 );
21492149 if (response .equals ("Saved" )) {
21502150 String expectedJson =
2151- "{\" error\" :{\" code\" :\" 500\" ,\" message\" :\" Cannot upload more than 4 attachments as set up by the application \" }}" ;
2151+ "{\" error\" :{\" code\" :\" 500\" ,\" message\" :\" Maximum number of attachments reached in English \" }}" ;
21522152 ObjectMapper objectMapper = new ObjectMapper ();
21532153 JsonNode actualJsonNode = objectMapper .readTree (check );
21542154 JsonNode expectedJsonNode = objectMapper .readTree (expectedJson );
@@ -2196,7 +2196,7 @@ void testUploadNAttachments() throws IOException {
21962196 System .out .println ("Result message for attachment " + i + ": " + resultMessage );
21972197
21982198 String expectedResponse =
2199- "{\" error\" :{\" code\" :\" 500\" ,\" message\" :\" Cannot upload more than 4 attachments as set up by the application \" }}" ;
2199+ "{\" error\" :{\" code\" :\" 500\" ,\" message\" :\" Maximum number of attachments reached in English \" }}" ;
22002200 if (resultMessage .equals (expectedResponse )) {
22012201 ObjectMapper objectMapper = new ObjectMapper ();
22022202 JsonNode actualJsonNode = objectMapper .readTree (resultMessage );
@@ -2702,7 +2702,7 @@ void testCreateLinkFailure() throws IOException {
27022702 String errorMessage = json .getJSONObject ("error" ).getString ("message" );
27032703 assertEquals ("500" , errorCode );
27042704 assertEquals (
2705- "Cannot upload more than 4 attachments as set up by the application " , errorMessage );
2705+ "Maximum number of attachments reached in English " , errorMessage );
27062706 }
27072707 String response = api .saveEntityDraft (appUrl , entityName , srvpath , createLinkEntity );
27082708 if (!response .equals ("Saved" )) {
0 commit comments