X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=netconf-server%2Fsrc%2Ftest%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Fnetconf%2Frestapi%2FNotificationServerRestApiTest.java;fp=netconf-server%2Fsrc%2Ftest%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Fnetconf%2Frestapi%2FNotificationServerRestApiTest.java;h=0000000000000000000000000000000000000000;hb=aa7991e2bb89e56479a79541a5d9b659ae619cd7;hp=1e035cbb88b5b883a4c8398423270e6672189254;hpb=17d7d2966615671ef113dd32c7ba5ebff47f5e6f;p=oam%2Ftr069-adapter.git diff --git a/netconf-server/src/test/java/org/commscope/tr069adapter/netconf/restapi/NotificationServerRestApiTest.java b/netconf-server/src/test/java/org/commscope/tr069adapter/netconf/restapi/NotificationServerRestApiTest.java deleted file mode 100644 index 1e035cb..0000000 --- a/netconf-server/src/test/java/org/commscope/tr069adapter/netconf/restapi/NotificationServerRestApiTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * ============LICENSE_START======================================================================== - * ONAP : tr-069-adapter - * ================================================================================================= - * Copyright (C) 2020 CommScope Inc Intellectual Property. - * ================================================================================================= - * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License, - * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You - * may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language governing permissions and - * limitations under the License. - * ===============LICENSE_END======================================================================= - */ - -package org.commscope.tr069adapter.netconf.restapi; - -import java.util.ArrayList; -import java.util.List; - -import org.commscope.tr069adapter.acs.common.ParameterDTO; -import org.commscope.tr069adapter.mapper.model.NetConfNotificationDTO; -import org.commscope.tr069adapter.netconf.boot.NetConfServiceBooter; -import org.junit.FixMethodOrder; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; -import org.junit.runners.MethodSorters; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit.jupiter.SpringExtension; - -@FixMethodOrder(MethodSorters.NAME_ASCENDING) -@ExtendWith(SpringExtension.class) -@SpringBootTest(classes = {NetConfServiceBooter.class}, - args = "--schemas-dir test-schemas --debug true --starting-port 17830") -@AutoConfigureMockMvc -public class NotificationServerRestApiTest { - - @Autowired - NotificationReceiverService service; - - @Test - public void createNetconfServer() { - - - NetConfNotificationDTO netConNotifDTO = - new NetConfNotificationDTO("00005B9432910", null, false); - - List parameters = new ArrayList<>(); - ParameterDTO param1 = new ParameterDTO("Device.Info", "info-details"); - parameters.add(param1); - netConNotifDTO.setParameters(parameters); - service.processNotification(netConNotifDTO); - - } -}