diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2020-07-06 20:53:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-07-06 20:53:44 +0000 |
commit | 58d82e64aa4df23dad4f17af2443868af9bef534 (patch) | |
tree | 4c78422878b0c8ddd7045d33076646a4400a98d4 | |
parent | ae9ff22bb349f9ad2b0339ab60a6fc3c67652432 (diff) | |
parent | c0ebde94c479301bcd64206008c6228867f3a034 (diff) |
Merge "Checkstyle fixes to drools-pdp"
3 files changed, 9 insertions, 12 deletions
diff --git a/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java b/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java index 14da6ab0..1b7c62a3 100644 --- a/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java +++ b/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP * ================================================================================ - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ package org.onap.policy.drools.lifecycle; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; -import static org.assertj.core.api.Java6Assertions.assertThatThrownBy; +import static org.assertj.core.api.Assertions.assertThatThrownBy; import org.junit.AfterClass; import org.junit.BeforeClass; @@ -60,31 +60,31 @@ public abstract class LifecycleStateUnsupportedTest { @Test public void start() { - assertThatThrownBy(() -> state.start()) + assertThatThrownBy(state::start) .isInstanceOf(UnsupportedOperationException.class); } @Test public void stop() { - assertThatThrownBy(() -> state.stop()) + assertThatThrownBy(state::stop) .isInstanceOf(UnsupportedOperationException.class); } @Test public void shutdown() { - assertThatThrownBy(() -> state.shutdown()) + assertThatThrownBy(state::shutdown) .isInstanceOf(UnsupportedOperationException.class); } @Test public void isAlive() { - assertThatThrownBy(() -> state.isAlive()) + assertThatThrownBy(state::isAlive) .isInstanceOf(UnsupportedOperationException.class); } @Test public void status() { - assertThatThrownBy(() -> state.status()) + assertThatThrownBy(state::status) .isInstanceOf(UnsupportedOperationException.class); } diff --git a/feature-session-persistence/src/test/java/org/onap/policy/drools/persistence/DroolsSessionEntityTest.java b/feature-session-persistence/src/test/java/org/onap/policy/drools/persistence/DroolsSessionEntityTest.java index 3033a7bd..2cc7d33a 100644 --- a/feature-session-persistence/src/test/java/org/onap/policy/drools/persistence/DroolsSessionEntityTest.java +++ b/feature-session-persistence/src/test/java/org/onap/policy/drools/persistence/DroolsSessionEntityTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * feature-session-persistence * ================================================================================ - * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2018, 2020 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,7 @@ package org.onap.policy.drools.persistence; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; -import static org.junit.Assert.assertTrue; import java.util.Date; import org.junit.Test; diff --git a/policy-core/src/test/java/org/onap/policy/drools/core/jmx/PdpJmxTest.java b/policy-core/src/test/java/org/onap/policy/drools/core/jmx/PdpJmxTest.java index 7b565f76..e585a4b6 100644 --- a/policy-core/src/test/java/org/onap/policy/drools/core/jmx/PdpJmxTest.java +++ b/policy-core/src/test/java/org/onap/policy/drools/core/jmx/PdpJmxTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP * ================================================================================ - * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018, 2020 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ package org.onap.policy.drools.core.jmx; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; |