diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2021-02-19 11:25:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-02-19 11:25:15 +0000 |
commit | f6afc1727aa7e06754cb617b6e4964391eb72664 (patch) | |
tree | 91a72750ff38c6a81f5b540280fe1f399ba46332 /cps-service/src/test | |
parent | 4901e46aeca4b5c84fe4f48460a355213e3b8cd9 (diff) | |
parent | 760e597acc7854a736363a0136343b5a77462cfb (diff) |
Merge "Persistence layer - Query Datanodes using cpsPath that contains contains a leaf name and a leaf value"
Diffstat (limited to 'cps-service/src/test')
-rwxr-xr-x | cps-service/src/test/groovy/org/onap/cps/spi/exceptions/CpsExceptionsSpec.groovy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cps-service/src/test/groovy/org/onap/cps/spi/exceptions/CpsExceptionsSpec.groovy b/cps-service/src/test/groovy/org/onap/cps/spi/exceptions/CpsExceptionsSpec.groovy index 500b80152d..a4a13ff4c9 100755 --- a/cps-service/src/test/groovy/org/onap/cps/spi/exceptions/CpsExceptionsSpec.groovy +++ b/cps-service/src/test/groovy/org/onap/cps/spi/exceptions/CpsExceptionsSpec.groovy @@ -133,4 +133,13 @@ class CpsExceptionsSpec extends Specification { (new DataNodeNotFoundException(dataspaceName, anchorName, xpath)).details == "DataNode with xpath ${xpath} was not found for anchor ${anchorName} and dataspace ${dataspaceName}." } + + def 'Creating a cps path exception.'() { + given: 'a cps path exception is created' + def exception = new CpsPathException(providedMessage, providedDetails) + expect: 'the exception has the provided message' + exception.message == providedMessage + and: 'the exception has the provided details' + exception.details == providedDetails + } }
\ No newline at end of file |