File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed
src/test/java/com/falsepattern/jfunge/storage Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1111 <properties >
1212 <java .version>8</java .version>
1313 <lombok .version>1.18.22</lombok .version>
14- <junit .version>5.8.2</junit .version>
1514 <trove .version>3.0.3</trove .version>
1615 <joml .version>1.10.2</joml .version>
1716 <project .encoding>UTF-8</project .encoding>
1817 <project .distribution.name>mavenpattern</project .distribution.name>
1918 <project .distribution.url>https://mvn.falsepattern.com/releases/</project .distribution.url>
2019 <project .mainclass>com.falsepattern.jfunge.Main</project .mainclass>
20+
21+ <!-- Test deps -->
22+ <commons-io .version>2.11.0</commons-io .version>
23+ <junit .version>5.8.2</junit .version>
2124 </properties >
2225
2326 <dependencies >
2730 <version >${lombok.version} </version >
2831 <scope >provided</scope >
2932 </dependency >
30- <dependency >
31- <groupId >org.junit.jupiter</groupId >
32- <artifactId >junit-jupiter-engine</artifactId >
33- <version >${junit.version} </version >
34- <scope >test</scope >
35- </dependency >
3633 <dependency >
3734 <groupId >net.sf.trove4j</groupId >
3835 <artifactId >trove4j</artifactId >
4340 <artifactId >joml</artifactId >
4441 <version >${joml.version} </version >
4542 </dependency >
43+ <dependency >
44+ <groupId >org.junit.jupiter</groupId >
45+ <artifactId >junit-jupiter-engine</artifactId >
46+ <version >${junit.version} </version >
47+ <scope >test</scope >
48+ </dependency >
49+ <dependency >
50+ <groupId >commons-io</groupId >
51+ <artifactId >commons-io</artifactId >
52+ <version >${commons-io.version} </version >
53+ <scope >test</scope >
54+ </dependency >
4655 </dependencies >
4756
4857 <distributionManagement >
Original file line number Diff line number Diff line change 33import com .falsepattern .jfunge .interpreter .Interpreter ;
44import lombok .val ;
55import lombok .var ;
6+ import org .apache .commons .io .output .TeeOutputStream ;
67import org .junit .jupiter .api .Assertions ;
78import org .junit .jupiter .api .Test ;
89
@@ -51,7 +52,8 @@ public boolean writeFile(String file, byte[] data) throws IOException {
5152 @ Test
5253 public void testMycology () {
5354 val input = new ByteArrayInputStream (new byte [0 ]);
54- val output = new ByteArrayOutputStream ();
55+ val checkingOutput = new ByteArrayOutputStream ();
56+ val output = new TeeOutputStream (checkingOutput , System .out );
5557 val program = new ByteArrayOutputStream ();
5658 Assertions .assertDoesNotThrow (() -> {
5759 val reader = TestMycology .class .getResourceAsStream ("/mycology.b98" );
You can’t perform that action at this time.
0 commit comments