From 760e597acc7854a736363a0136343b5a77462cfb Mon Sep 17 00:00:00 2001 From: niamhcore Date: Thu, 11 Feb 2021 14:49:11 +0000 Subject: Persistence layer - Query Datanodes using cpsPath that contains contains a leaf name and a leaf value Issue-ID: CPS-231 Signed-off-by: niamhcore Change-Id: I9bd483a4b76e233ab6c64b3ef8aacb593e4e9da0 --- .../groovy/org/onap/cps/spi/exceptions/CpsExceptionsSpec.groovy | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cps-service/src/test') 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 500b80152..a4a13ff4c 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 -- cgit 1.2.3-korg