summaryrefslogtreecommitdiffstats
path: root/cps-ri
diff options
context:
space:
mode:
authorSourabh Sourabh <sourabh.sourabh@est.tech>2023-07-14 10:48:02 +0000
committerGerrit Code Review <gerrit@onap.org>2023-07-14 10:48:02 +0000
commit1de01a856f4e655ae82c945c5229d7f4d2ab37ad (patch)
tree8e6024854711b2947913fabaa112b25623b553e2 /cps-ri
parenta3aba7c370817c1df7c6188ebe825252b935c4ae (diff)
parent2b8268f3c599c185fbef549583d0f9dcdcb3a861 (diff)
Merge "Upgrade to Java 17"
Diffstat (limited to 'cps-ri')
-rw-r--r--cps-ri/src/test/groovy/org/onap/cps/spi/utils/SessionManagerSpec.groovy7
1 files changed, 4 insertions, 3 deletions
diff --git a/cps-ri/src/test/groovy/org/onap/cps/spi/utils/SessionManagerSpec.groovy b/cps-ri/src/test/groovy/org/onap/cps/spi/utils/SessionManagerSpec.groovy
index db766cd1f3..feda338b80 100644
--- a/cps-ri/src/test/groovy/org/onap/cps/spi/utils/SessionManagerSpec.groovy
+++ b/cps-ri/src/test/groovy/org/onap/cps/spi/utils/SessionManagerSpec.groovy
@@ -21,6 +21,7 @@
package org.onap.cps.spi.utils
import com.google.common.util.concurrent.TimeLimiter
+import com.google.common.util.concurrent.UncheckedExecutionException
import org.hibernate.HibernateException
import org.hibernate.Transaction
import org.onap.cps.spi.config.CpsSessionFactory
@@ -67,9 +68,9 @@ class SessionManagerSpec extends Specification {
def thrown = thrown(SessionManagerException)
thrown.details.contains(expectedExceptionDetail)
where:
- exceptionDuringTest || expectedExceptionDetail
- new InterruptedException() || 'interrupted'
- new ExecutionException() || 'aborted'
+ exceptionDuringTest || expectedExceptionDetail
+ new InterruptedException() || 'interrupted'
+ new UncheckedExecutionException() || 'aborted'
}
def 'Close a session' () {