2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (c) 2017 AT&T Intellectual Property
6 * ===================================================================
7 * Modifications Copyright (c) 2018-2019 IBM
8 * ===================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * ============LICENSE_END=============================================
22 * ====================================================================
25 package org.onap.music.unittests.jsonobjects;
27 import static org.junit.Assert.assertEquals;
29 import java.io.IOException;
30 import java.util.HashMap;
33 import org.junit.Test;
34 import org.onap.music.datastore.jsonobjects.JsonSelect;
36 public class JsonSelectTest {
39 public void testGetConsistencyInfo() {
40 JsonSelect js = new JsonSelect();
41 Map<String, String> mapSs = new HashMap<>();
42 mapSs.put("k1", "one");
43 js.setConsistencyInfo(mapSs);
44 assertEquals("one", js.getConsistencyInfo().get("k1"));
48 public void testSerialize() throws IOException {
49 JsonSelect js = new JsonSelect();
50 Map<String, String> mapSs = new HashMap<>();
51 mapSs.put("Key", "Value");
52 js.setConsistencyInfo(mapSs);