aboutsummaryrefslogtreecommitdiffstats
path: root/feature-lifecycle/src/test/java
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-07-06 13:29:47 -0400
committerJim Hahn <jrh3@att.com>2020-07-06 13:45:43 -0400
commitc0ebde94c479301bcd64206008c6228867f3a034 (patch)
treef5b7c6435e36423f133344b0bb300b31948e4f4d /feature-lifecycle/src/test/java
parent427cbbb9e25f843bcf06d75904f6294ac07180be (diff)
Checkstyle fixes to drools-pdp
Issue-ID: POLICY-2696 Change-Id: I7f80737c52e3f16e03803118d92411e4ac39c5fb Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'feature-lifecycle/src/test/java')
-rw-r--r--feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java14
1 files changed, 7 insertions, 7 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);
}