Skip to content

Commit

Permalink
chore(test): replace with new implementation
Browse files Browse the repository at this point in the history
* OutputCapture deprecated replaced ResettingOutputCapture with OutputCaptureRule
  • Loading branch information
npetzall committed Mar 6, 2023
1 parent f974a0c commit 07f5f07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 56 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/schemaspy/ConfigIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
import org.hamcrest.Matchers;
import org.junit.Rule;
import org.junit.Test;
import org.schemaspy.testing.ResettingOutputCapture;
import org.springframework.boot.test.system.OutputCaptureRule;

/**
* @author Nils Petzaell
*/
public class ConfigIT {

@Rule
public ResettingOutputCapture outputCapture = new ResettingOutputCapture();
public OutputCaptureRule outputCapture = new OutputCaptureRule();

@Test
public void onlyOutputSelectedDatabaseTypeWhenDbSpecific() {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/schemaspy/MainTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.schemaspy.testing.ExitCodeRule;
import org.schemaspy.testing.ResettingOutputCapture;
import org.springframework.boot.test.system.OutputCaptureRule;
import org.springframework.test.context.junit4.SpringRunner;

import java.nio.file.Paths;
Expand All @@ -16,7 +16,7 @@
public class MainTest {

@Rule
public ResettingOutputCapture resettingOutputCapture = new ResettingOutputCapture();
public OutputCaptureRule resettingOutputCapture = new OutputCaptureRule();

@Rule
public ExitCodeRule exitCodeRule = new ExitCodeRule();
Expand Down
52 changes: 0 additions & 52 deletions src/test/java/org/schemaspy/testing/ResettingOutputCapture.java

This file was deleted.

0 comments on commit 07f5f07

Please sign in to comment.