From 71a61bb124a906e6327e78f45ecc9a0f7b1ec0dc Mon Sep 17 00:00:00 2001 From: niamhcore Date: Tue, 6 Jul 2021 10:32:17 +0100 Subject: Implement Plugin Registration in DMI-Plugin - Refactor ncmp/dmi package Issue-ID: CPS-405 Issue-ID: CPS-499 Signed-off-by: niamhcore Change-Id: I0a7ab9bb0ca3861b171388613c44f7bc6e7f9aa9 --- .../ncmp/dmi/rest/controller/TestController.java | 35 ++++++++++++++++++++++ .../cps/ncmp/rest/controller/TestController.java | 35 ---------------------- 2 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 src/test/java/org/onap/cps/ncmp/dmi/rest/controller/TestController.java delete mode 100644 src/test/java/org/onap/cps/ncmp/rest/controller/TestController.java (limited to 'src/test/java') diff --git a/src/test/java/org/onap/cps/ncmp/dmi/rest/controller/TestController.java b/src/test/java/org/onap/cps/ncmp/dmi/rest/controller/TestController.java new file mode 100644 index 00000000..5240e239 --- /dev/null +++ b/src/test/java/org/onap/cps/ncmp/dmi/rest/controller/TestController.java @@ -0,0 +1,35 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2021 Nordix Foundation + * ================================================================================ + * Licensed 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License 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. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.cps.ncmp.dmi.rest.controller; + +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController { + + @GetMapping("/test") + ResponseEntity test() { + return new ResponseEntity<>(HttpStatus.OK); + } +} diff --git a/src/test/java/org/onap/cps/ncmp/rest/controller/TestController.java b/src/test/java/org/onap/cps/ncmp/rest/controller/TestController.java deleted file mode 100644 index 5d6f7b90..00000000 --- a/src/test/java/org/onap/cps/ncmp/rest/controller/TestController.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * ============LICENSE_START======================================================= - * Copyright (C) 2021 Nordix Foundation - * ================================================================================ - * Licensed 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 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License 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. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - -package org.onap.cps.ncmp.rest.controller; - -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; - -@RestController -public class TestController { - - @GetMapping("/test") - ResponseEntity test() { - return new ResponseEntity<>(HttpStatus.OK); - } -} -- cgit 1.2.3-korg