X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-ri%2Fsrc%2Ftest%2Fgroovy%2Forg%2Fonap%2Fcps%2Fspi%2Futils%2FSessionManagerSpec.groovy;h=feda338b80ea6bc289f84f57caa4e75dedd62700;hb=2b8268f3c599c185fbef549583d0f9dcdcb3a861;hp=db766cd1f34f92997da9e08347ed60cef648f10d;hpb=db2db56f3358fa8dcccc864e04b490b307877c33;p=cps.git 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 db766cd1f..feda338b8 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' () {