aboutsummaryrefslogtreecommitdiffstats
path: root/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/utils/Constants.java
blob: 2bf304ec8e1442c695293cd5a197c9f0517e4a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*-
 * ============LICENSE_START=======================================================
 *  Copyright (C) 2018 Ericsson. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * SPDX-License-Identifier: Apache-2.0
 * ============LICENSE_END=========================================================
 */

package org.onap.policy.apex.context.test.utils;

import java.util.TimeZone;

import org.onap.policy.apex.context.test.concepts.TestPolicyContextItem;
import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;

public class Constants {
    public static final String MAP_CONTEXT_ALBUM = "MapContextAlbum";
    public static final String LONG_CONTEXT_ALBUM = "LongContextAlbum";
    public static final String DATE_CONTEXT_ALBUM = "DateContextAlbum";

    public static final String EXTERNAL_CONTEXT_ALBUM = "ExternalContextAlbum";
    public static final String GLOBAL_CONTEXT_ALBUM = "GlobalContextAlbum";
    public static final String POLICY_CONTEXT_ALBUM = "PolicyContextAlbum";

    public static final String APEX_DISTRIBUTOR = "ApexDistributor";
    public static final String VERSION = "0.0.1";
    public static final int INT_VAL = 0xFFFFFFFF;
    public static final int INT_VAL_2 = 2000;
    public static final int INT_VAL_3 = -1;
    public static final String EXCEPTION_MESSAGE = "Test should throw an exception";
    public static final byte BYTE_VAL = (byte) 0xFF;
    public static final double PI_VAL = Math.PI;
    public static final float FLOAT_VAL = 3.14159265359f;
    public static final String EXTERNAL_CONTEXT = "externalContext";
    public static final String GLOBAL_CONTEXT_KEY = "globalContext";
    public static final String STRING_GLOBAL_VAL = "This is a global context string";
    public static final String STRING_VAL = "This is a policy context string";
    public static final String STRING_EXT_VAL = "This is an external context string";
    public static final long LONG_VAL = 0xFFFFFFFFFFFFFFFFL;
    public static final String TEST_POLICY_CONTEXT_ITEM = TestPolicyContextItem.class.getName();
    public static final TimeZone TIME_ZONE = TimeZone.getTimeZone("Europe/Dublin");

    private static final AxArtifactKey KEY = new AxArtifactKey("testC-top", VERSION);
    private static final AxArtifactKey KEY3 = new AxArtifactKey("testC-bot", VERSION);
    private static final AxArtifactKey KEY2 = new AxArtifactKey("testC-next", VERSION);

    private static final AxArtifactKey[] AX_ARTIFACT_KEYS = {KEY, KEY2, KEY3};
    public static final AxArtifactKey[] USED_ARTIFACT_STACK_ARRAY = AX_ARTIFACT_KEYS;

    private Constants() {}

}