From cca83d07b9155809c601c4fb810407c1bb4b64af Mon Sep 17 00:00:00 2001 From: Tom Page Date: Thu, 1 Aug 2019 13:33:26 +0100 Subject: [PATCH] Revert "Use AlfrescoRuntimeException." This reverts commit 59232c44f894f75cb4c8f22e031bb2af73454681. --- .../rest/rm/community/requests/gscore/api/RecordFolderAPI.java | 3 +-- .../rm/community/requests/gscore/api/UnfiledContainerAPI.java | 3 +-- .../community/requests/gscore/api/UnfiledRecordFolderAPI.java | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java index 42851778e4..640ae1c3ae 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordFolderAPI.java @@ -48,7 +48,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.http.ContentType; -import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.rest.core.RMRestWrapper; import org.alfresco.rest.rm.community.model.record.Record; import org.alfresco.rest.rm.community.model.recordfolder.RecordFolder; @@ -254,7 +253,7 @@ public class RecordFolderAPI extends RMModelRequest } catch (IOException e) { - throw new AlfrescoRuntimeException("Failed to convert model to JSON.", e); + throw new RuntimeException("Failed to convert model to JSON.", e); } // add request fields Iterator fieldNames = root.fieldNames(); diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledContainerAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledContainerAPI.java index f8b64a78a1..9fe958fbbf 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledContainerAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledContainerAPI.java @@ -47,7 +47,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.http.ContentType; -import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.rest.core.RMRestWrapper; import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainer; import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainerChild; @@ -217,7 +216,7 @@ public class UnfiledContainerAPI extends RMModelRequest } catch (IOException e) { - throw new AlfrescoRuntimeException("Failed to convert model to JSON.", e); + throw new RuntimeException("Failed to convert model to JSON.", e); } // add request fields Iterator fieldNames = root.fieldNames(); diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledRecordFolderAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledRecordFolderAPI.java index 0e23c87290..bcb91a40d1 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledRecordFolderAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/UnfiledRecordFolderAPI.java @@ -48,7 +48,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.http.ContentType; -import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.rest.core.RMRestWrapper; import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainerChild; import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainerChildCollection; @@ -217,7 +216,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest } catch (IOException e) { - throw new AlfrescoRuntimeException("Failed to convert model to JSON.", e); + throw new RuntimeException("Failed to convert model to JSON.", e); } // add request fields Iterator fieldNames = root.fieldNames();