Update junits
[music.git] / music-core / src / test / java / org / onap / music / datastore / jsonobjects / JsonSelectTest.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
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
12  * 
13  *     http://www.apache.org/licenses/LICENSE-2.0
14  * 
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.
20  * 
21  * ============LICENSE_END=============================================
22  * ====================================================================
23  */
24
25 package org.onap.music.datastore.jsonobjects;
26
27 import static org.junit.Assert.assertEquals;
28
29 import java.io.IOException;
30 import java.util.HashMap;
31 import java.util.Map;
32
33 import org.junit.Test;
34
35 public class JsonSelectTest {
36
37     @Test
38     public void testGetConsistencyInfo() {
39         JsonSelect js = new JsonSelect();
40         Map<String, String> mapSs = new HashMap<>();
41         mapSs.put("k1", "one");
42         js.setConsistencyInfo(mapSs);
43         assertEquals("one", js.getConsistencyInfo().get("k1"));
44     }
45
46     @Test
47     public void testSerialize() throws IOException {
48         JsonSelect js = new JsonSelect();
49         Map<String, String> mapSs = new HashMap<>();
50         mapSs.put("Key", "Value");
51         js.setConsistencyInfo(mapSs);
52         js.serialize();
53     }
54
55 }