Fix for AlreadyDefinedException test. 80/119980/1
authorniamhcore <niamh.core@est.tech>
Mon, 29 Mar 2021 12:27:42 +0000 (13:27 +0100)
committerNiamh Core <niamh.core@est.tech>
Mon, 29 Mar 2021 12:32:30 +0000 (12:32 +0000)
Issue-ID: CPS-290
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Id3e3764b00dfd462fd20a5c9ded68f8d507e8119

cps-rest/src/test/groovy/org/onap/cps/rest/controller/DataRestControllerSpec.groovy

index 5794f88..ef43641 100755 (executable)
@@ -160,12 +160,12 @@ class DataRestControllerSpec extends Specification {
         then: 'a success response is returned'
             response.status == httpStatus.value()
         where:
-            scenario          | xpath     | exception                                 || httpStatus
-            'no dataspace'    | '/x-path' | new DataspaceNotFoundException('')        || HttpStatus.BAD_REQUEST
-            'no anchor'       | '/x-path' | new AnchorNotFoundException('', '')       || HttpStatus.BAD_REQUEST
-            'no data'         | '/x-path' | new DataNodeNotFoundException('', '', '') || HttpStatus.NOT_FOUND
-            'empty path'      | ''        | new IllegalStateException()               || HttpStatus.NOT_IMPLEMENTED
-            'already defined' | '/x-path' | new AlreadyDefinedException('', '')       || HttpStatus.CONFLICT
+            scenario          | xpath     | exception                                        || httpStatus
+            'no dataspace'    | '/x-path' | new DataspaceNotFoundException('')               || HttpStatus.BAD_REQUEST
+            'no anchor'       | '/x-path' | new AnchorNotFoundException('', '')              || HttpStatus.BAD_REQUEST
+            'no data'         | '/x-path' | new DataNodeNotFoundException('', '', '')        || HttpStatus.NOT_FOUND
+            'empty path'      | ''        | new IllegalStateException()                      || HttpStatus.NOT_IMPLEMENTED
+            'already defined' | '/x-path' | new AlreadyDefinedException('', new Throwable()) || HttpStatus.CONFLICT
     }
 
     @Unroll