2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2019 Ericsson. All rights reserved.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
20 package org.onap.so.monitoring.rest.api;
22 import java.nio.file.Path;
23 import java.nio.file.Paths;
24 import java.util.UUID;
27 * @author andrei.barcovschi@ericsson.com
30 public class Constants {
32 public static final String PROCRESS_DEF_ID = "AFRFLOW:1:c6eea1b7-9722-11e8-8caf-022ac9304eeb";
34 public static final String EMPTY_ARRAY_RESPONSE = "[]";
36 public static final String PROCESS_INSTACE_ID = "5956a99d-9736-11e8-8caf-022ac9304eeb";
38 public static final String EMPTY_STRING = "";
40 public static final String SOURCE_TEST_FOLDER = "src/test/resources/camundaResponses/";
42 public static final Path PROCESS_DEF_RESPONSE_JSON_FILE = Paths.get(SOURCE_TEST_FOLDER + "processDefinition.json");
44 public static final Path ACTIVITY_INSTANCE_RESPONSE_JSON_FILE =
45 Paths.get(SOURCE_TEST_FOLDER + "activityInstance.json");
47 public static final Path PROCESS_INSTANCE_VARIABLES_RESPONSE_JSON_FILE =
48 Paths.get(SOURCE_TEST_FOLDER + "processInstanceVariables.json");
50 public static final Path PROCCESS_INSTANCE_RESPONSE_JSON_FILE =
51 Paths.get(SOURCE_TEST_FOLDER + "processInstance.json");
53 public static final Path SINGLE_PROCCESS_INSTANCE_RESPONSE_JSON_FILE =
54 Paths.get(SOURCE_TEST_FOLDER + "singleprocessInstance.json");
56 public static final Path SEARCH_RESULT_RESPONSE_JSON_FILE =
57 Paths.get("src/test/resources/databaseResponses/searchResult.json");
59 public static final String ID = UUID.randomUUID().toString();
61 public static final long END_TIME_IN_MS = 1546351200000l;
63 public static final long START_TIME_IN_MS = 1546346700000l;
65 private Constants() {}