Skip to content

Commit

Permalink
use beforeEach and afterEach
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Jan 23, 2019
1 parent bfdde7e commit 0642b3e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
import com.alibaba.dubbo.config.RegistryConfig;
import com.alibaba.dubbo.config.ServiceConfig;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

public class ReferenceConfigTest {
private ApplicationConfig application = new ApplicationConfig();
private RegistryConfig registry = new RegistryConfig();
private ProtocolConfig protocol = new ProtocolConfig();

@BeforeAll
@BeforeEach
public void setUp() {
ConfigManager.getInstance().clear();
}

@AfterAll
@AfterEach
public void tearDown() {
ConfigManager.getInstance().clear();
}
Expand Down

0 comments on commit 0642b3e

Please sign in to comment.