+++ /dev/null
-/*\r
- * ============LICENSE_START========================================================================\r
- * ONAP : tr-069-adapter\r
- * =================================================================================================\r
- * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
- * =================================================================================================\r
- * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
- * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
- * may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
- * either express or implied. See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- * ===============LICENSE_END=======================================================================\r
- */\r
-\r
-package org.commscope.tr069adapter.netconf.restapi;\r
-\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-\r
-import org.commscope.tr069adapter.acs.common.ParameterDTO;\r
-import org.commscope.tr069adapter.mapper.model.NetConfNotificationDTO;\r
-import org.commscope.tr069adapter.netconf.boot.NetConfServiceBooter;\r
-import org.junit.FixMethodOrder;\r
-import org.junit.jupiter.api.Test;\r
-import org.junit.jupiter.api.extension.ExtendWith;\r
-import org.junit.runners.MethodSorters;\r
-import org.springframework.beans.factory.annotation.Autowired;\r
-import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;\r
-import org.springframework.boot.test.context.SpringBootTest;\r
-import org.springframework.test.context.junit.jupiter.SpringExtension;\r
-\r
-@FixMethodOrder(MethodSorters.NAME_ASCENDING)\r
-@ExtendWith(SpringExtension.class)\r
-@SpringBootTest(classes = {NetConfServiceBooter.class},\r
- args = "--schemas-dir test-schemas --debug true --starting-port 17830")\r
-@AutoConfigureMockMvc\r
-public class NotificationServerRestApiTest {\r
-\r
- @Autowired\r
- NotificationReceiverService service;\r
-\r
- @Test\r
- public void createNetconfServer() {\r
-\r
-\r
- NetConfNotificationDTO netConNotifDTO =\r
- new NetConfNotificationDTO("00005B9432910", null, false);\r
-\r
- List<ParameterDTO> parameters = new ArrayList<>();\r
- ParameterDTO param1 = new ParameterDTO("Device.Info", "info-details");\r
- parameters.add(param1);\r
- netConNotifDTO.setParameters(parameters);\r
- service.processNotification(netConNotifDTO);\r
-\r
- }\r
-}\r