|
| 1 | +/* |
| 2 | + * (C) Copyright IBM Corp. 2021. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
| 5 | + * the License. You may obtain a copy of the License at |
| 6 | + * |
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |
| 10 | + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| 11 | + * specific language governing permissions and limitations under the License. |
| 12 | + */ |
| 13 | + |
| 14 | +package com.ibm.watson.assistant.v2.model; |
| 15 | + |
| 16 | +import static org.testng.Assert.*; |
| 17 | + |
| 18 | +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; |
| 19 | +import com.ibm.watson.assistant.v2.utils.TestUtilities; |
| 20 | +import java.io.InputStream; |
| 21 | +import java.util.HashMap; |
| 22 | +import java.util.List; |
| 23 | +import org.testng.annotations.Test; |
| 24 | + |
| 25 | +/** Unit test class for the SearchResultAnswer model. */ |
| 26 | +public class SearchResultAnswerTest { |
| 27 | + final HashMap<String, InputStream> mockStreamMap = TestUtilities.createMockStreamMap(); |
| 28 | + final List<FileWithMetadata> mockListFileWithMetadata = |
| 29 | + TestUtilities.creatMockListFileWithMetadata(); |
| 30 | + |
| 31 | + @Test |
| 32 | + public void testSearchResultAnswer() throws Throwable { |
| 33 | + SearchResultAnswer searchResultAnswerModel = new SearchResultAnswer(); |
| 34 | + assertNull(searchResultAnswerModel.getText()); |
| 35 | + assertNull(searchResultAnswerModel.getConfidence()); |
| 36 | + } |
| 37 | +} |
0 commit comments