ACS-1033 : Spring upgrade to 5.3.2 (#213)

- Update test as per 5de549d7d4
- before spring 5.3.0, AbstractFallbackSQLExceptionTranslator was translating org.postgresql.util.PSQLException as UncategorizedSQLException - now it returns null (ref. e9cded560d (diff-c6aa1c6a4b11e8a722808e945c4c5b6ef471c42871c7ce830554dde81ad7f2c2L89))

Co-authored-by: CezarLeahu <35226487+CezarLeahu@users.noreply.github.com>
This commit is contained in:
Denis Ungureanu
2020-12-23 12:21:03 +02:00
committed by GitHub
parent a79f782a91
commit f786f4ffaf
4 changed files with 23 additions and 11 deletions

View File

@@ -243,7 +243,7 @@ public class QuickShareRestApiTest extends BaseWebScriptTest
// get content thumbnail for node (authenticated)
rsp = sendRequest(new GetRequest(AUTH_CONTENT_THUMBNAIL_URL.replace("{node_ref_3}", testNodeRef_3).replace("{thumbnailname}", "doclib")), expectedStatusOK, USER_ONE);
String type = rsp.getContentType();
assertEquals(TEST_MIMETYPE_PNG, type);
assertEquals(TEST_MIMETYPE_PNG + ";charset=UTF-8", type);
// As user two ...
@@ -279,7 +279,7 @@ public class QuickShareRestApiTest extends BaseWebScriptTest
// get content thumbnail for share (note: can be unauthenticated)
rsp = sendRequest(new GetRequest(SHARE_CONTENT_THUMBNAIL_URL.replace("{shared_id}", sharedId).replace("{thumbnailname}", "doclib")), expectedStatusOK, USER_TWO);
type = rsp.getContentType();
assertEquals(TEST_MIMETYPE_PNG, type);
assertEquals(TEST_MIMETYPE_PNG + ";charset=UTF-8", type);
// As user one ...