58918c3e1f65bf8830b45c1b43f7533e501d080d
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.sdc.backend.ci.tests.datatypes.enums;
22
23 import java.util.Random;
24
25 public enum ServiceCategoriesEnum {
26
27         VOIP("VoIP Call Control"), MOBILITY("Mobility"), NETWORK_L4("Network L4+"), NETWORK_L3("Network L1-3"),
28                 PARTNERSERVICE("Partner Domain Service");
29         String value;
30
31         private ServiceCategoriesEnum(String value) {
32                 this.value = value;
33         }
34
35         public String getValue() {
36
37                 return value;
38         }
39
40     public static ServiceCategoriesEnum getRandomElement() {
41         Random random = new Random();
42         return ServiceCategoriesEnum.values()[random.nextInt(ServiceCategoriesEnum.values().length)];
43     }
44 }