* ============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.
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;
@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);
}
* ============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.
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;
* ============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.
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;