diff options
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java b/main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java index d6a0d1f1..c2f0e66d 100644 --- a/main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java +++ b/main/src/test/java/org/onap/policy/pap/main/comm/Threaded.java @@ -3,6 +3,7 @@ * ONAP PAP * ================================================================================ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2023 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +21,8 @@ package org.onap.policy.pap.main.comm; -import org.junit.After; -import org.junit.Before; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; /** * Super class for tests that run a background thread. @@ -44,7 +45,7 @@ public abstract class Threaded { * * @throws Exception if an error occurs */ - @Before + @BeforeEach public void setUp() throws Exception { thread = null; } @@ -55,7 +56,7 @@ public abstract class Threaded { * * @throws Exception if an error occurs */ - @After + @AfterEach public void tearDown() throws Exception { stopThread(); waitStop(); |