2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 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=========================================================
21 package org.onap.policy.apex.context.test.utils;
23 import java.util.TimeZone;
25 import org.onap.policy.apex.context.test.concepts.TestPolicyContextItem;
26 import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
28 public class Constants {
29 public static final String MAP_CONTEXT_ALBUM = "MapContextAlbum";
30 public static final String LONG_CONTEXT_ALBUM = "LongContextAlbum";
31 public static final String DATE_CONTEXT_ALBUM = "DateContextAlbum";
33 public static final String EXTERNAL_CONTEXT_ALBUM = "ExternalContextAlbum";
34 public static final String GLOBAL_CONTEXT_ALBUM = "GlobalContextAlbum";
35 public static final String POLICY_CONTEXT_ALBUM = "PolicyContextAlbum";
37 public static final String APEX_DISTRIBUTOR = "ApexDistributor";
38 public static final String VERSION = "0.0.1";
39 public static final int INT_VAL = 0xFFFFFFFF;
40 public static final int INT_VAL_2 = 2000;
41 public static final int INT_VAL_3 = -1;
42 public static final String EXCEPTION_MESSAGE = "Test should throw an exception";
43 public static final byte BYTE_VAL = (byte) 0xFF;
44 public static final double PI_VAL = Math.PI;
45 public static final float FLOAT_VAL = 3.14159265359f;
46 public static final String EXTERNAL_CONTEXT = "externalContext";
47 public static final String GLOBAL_CONTEXT_KEY = "globalContext";
48 public static final String STRING_GLOBAL_VAL = "This is a global context string";
49 public static final String STRING_VAL = "This is a policy context string";
50 public static final String STRING_EXT_VAL = "This is an external context string";
51 public static final long LONG_VAL = 0xFFFFFFFFFFFFFFFFL;
52 public static final String TEST_POLICY_CONTEXT_ITEM = TestPolicyContextItem.class.getName();
53 public static final TimeZone TIME_ZONE = TimeZone.getTimeZone("Europe/Dublin");
55 public static final AxArtifactKey L_TYPE_CONTEXT_ALBUM = new AxArtifactKey("LTypeContextAlbum", VERSION);
56 public static final String TEST_VALUE = "testValue";
58 private static final AxArtifactKey KEY = new AxArtifactKey("testC-top", VERSION);
59 private static final AxArtifactKey KEY3 = new AxArtifactKey("testC-bot", VERSION);
60 private static final AxArtifactKey KEY2 = new AxArtifactKey("testC-next", VERSION);
62 private static final AxArtifactKey[] USED_ARTIFACT_STACK_ARRAY = new AxArtifactKey[] {KEY, KEY2, KEY3};
64 public static final AxArtifactKey[] getAxArtifactKeyArray() {
65 return USED_ARTIFACT_STACK_ARRAY;
68 private Constants() {}