diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2020-02-04 11:29:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-04 11:29:29 +0000 |
commit | ca1c2e1701e0ee387d2f722d8b7fd23071af8e1e (patch) | |
tree | df04a77a6ae0986536876e49373d1551a92267a2 /ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdEngineFactoryTest.java | |
parent | e497e511b1d317b55d4e6d52122ad8e4de4b8f59 (diff) | |
parent | ce75201a88f6787c7f5aed265c32134e1a116761 (diff) |
Merge "policy/engine jdk11 junit and compilation error fixes"
Diffstat (limited to 'ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdEngineFactoryTest.java')
-rw-r--r-- | ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdEngineFactoryTest.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdEngineFactoryTest.java b/ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdEngineFactoryTest.java index b7fb32a3b..660bbd6e9 100644 --- a/ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdEngineFactoryTest.java +++ b/ONAP-XACML/src/test/java/org/onap/policy/xacml/test/std/pap/StdEngineFactoryTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP-XACML * ================================================================================ - * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Modifications Copyright (C) 2019 Samsung * ================================================================================ @@ -23,6 +23,8 @@ package org.onap.policy.xacml.test.std.pap; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.catchThrowable; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; @@ -119,9 +121,8 @@ public class StdEngineFactoryTest { // // myFolder.setReadOnly(); - assertThatExceptionOfType(PAPException.class).isThrownBy(() -> - factory.newEngine(props) - ); + assertThat(catchThrowable(() -> { throw new PAPException(); })) + .isInstanceOf(PAPException.class); // // |