Skip to content

Commit

Permalink
reficio#241: make tests reproducable
Browse files Browse the repository at this point in the history
  • Loading branch information
sparsick committed Mar 27, 2021
1 parent aa62619 commit 7694c4a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import org.apache.maven.plugin.logging.SystemStreamLog;
import org.assertj.core.api.ThrowableAssert;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mockito.MockedStatic;
Expand All @@ -44,6 +45,11 @@ public static void setUpClass() {
Logger.initialize(new SystemStreamLog());
}

@AfterClass
public static void cleanUp() {
Logger.initialize(null);
}

@Test
public void bndAnalyzerProduceErrorThenExceptionIsExpected() {
try (MockedStatic<AquteHelper> theMock = mockStatic(AquteHelper.class)) {
Expand Down

0 comments on commit 7694c4a

Please sign in to comment.