diff options
Diffstat (limited to 'workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java')
-rw-r--r-- | workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java index 7a7e715e..a9408f15 100644 --- a/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java +++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java @@ -1,8 +1,8 @@ package org.onap.sdc.workflow; -import static org.onap.sdc.workflow.api.RestConstants.SIZE_PARAM; -import static org.onap.sdc.workflow.api.RestConstants.PAGE_PARAM; -import static org.onap.sdc.workflow.api.RestConstants.SORT_PARAM; +import static org.onap.sdc.workflow.api.RestParams.LIMIT; +import static org.onap.sdc.workflow.api.RestParams.OFFSET; +import static org.onap.sdc.workflow.api.RestParams.SORT; public class RestPath { @@ -15,33 +15,33 @@ public class RestPath { private static final String WORKFLOW_URL_FORMATTER = WORKFLOWS_URL + "/%s"; private static final String VERSIONS_URL_FORMATTER = WORKFLOWS_URL + "/%s/versions"; private static final String VERSION_URL_FORMATTER = WORKFLOWS_URL + "/%s/versions/%s"; - private static final String SORT_QUERY_STRING_FORMATTER = SORT_PARAM + "=%s"; - private static final String SIZE_QUERY_STRING_FORMATTER = SIZE_PARAM + "=%s"; - private static final String OFFSET_QUERY_STRING_FORMATTER = PAGE_PARAM + "=%s"; + private static final String SORT_QUERY_STRING_FORMATTER = SORT + "=%s"; + private static final String LIMIT_QUERY_STRING_FORMATTER = LIMIT + "=%s"; + private static final String OFFSET_QUERY_STRING_FORMATTER = OFFSET + "=%s"; private static final String WORKFLOW_URL_FORMATTER_QUERY_PARAMS_ALL = - WORKFLOWS_URL + "?" + SORT_QUERY_STRING_FORMATTER+ "&" + SIZE_QUERY_STRING_FORMATTER + "&" + + WORKFLOWS_URL + "?" + SORT_QUERY_STRING_FORMATTER+ "&" + LIMIT_QUERY_STRING_FORMATTER + "&" + OFFSET_QUERY_STRING_FORMATTER; private static final String WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT = - WORKFLOWS_URL + "?" + SIZE_QUERY_STRING_FORMATTER + "&" + OFFSET_QUERY_STRING_FORMATTER; - private static final String WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_SIZE = + WORKFLOWS_URL + "?" + LIMIT_QUERY_STRING_FORMATTER + "&" + OFFSET_QUERY_STRING_FORMATTER; + private static final String WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_LIMIT = WORKFLOWS_URL + "?" + OFFSET_QUERY_STRING_FORMATTER; private static final String WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_OFFSET = - WORKFLOWS_URL + "?" + SIZE_QUERY_STRING_FORMATTER; + WORKFLOWS_URL + "?" + LIMIT_QUERY_STRING_FORMATTER; - public static String getWorkflowsPathAllQueryParams(String sort, String size, String offset){ - return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_ALL, sort, size, offset); + public static String getWorkflowsPathAllQueryParams(String sort, String limit, String offset){ + return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_ALL, sort, limit, offset); } - public static String getWorkflowsPathNoSort(String size, String offset){ - return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT, size, offset); + public static String getWorkflowsPathNoSort(String limit, String offset){ + return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT, limit, offset); } - public static String getWorkflowsPathNoSortAndSize(String offset){ - return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_SIZE, offset); + public static String getWorkflowsPathNoSortAndLimit(String offset){ + return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_LIMIT, offset); } - public static String getWorkflowsPathNoSortAndOffset(String size){ - return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_OFFSET, size); + public static String getWorkflowsPathNoSortAndOffset(String limit){ + return String.format(WORKFLOW_URL_FORMATTER_QUERY_PARAMS_NO_SORT_AND_OFFSET, limit); } public static String getWorkflowsPath() { |