File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/test/java/travelator/marketing Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package travelator.marketing
2
2
3
3
import org.junit.jupiter.api.Assertions.assertEquals
4
4
import org.junit.jupiter.api.Test
5
- import java.io.StringReader
6
5
import java.io.StringWriter
7
6
8
7
class HighValueCustomersReportTests {
@@ -26,7 +25,6 @@ class HighValueCustomersReportTests {
26
25
)
27
26
}
28
27
29
-
30
28
@Test
31
29
fun emptyTest () {
32
30
check(
@@ -48,13 +46,13 @@ class HighValueCustomersReportTests {
48
46
)
49
47
}
50
48
49
+
51
50
private fun check (
52
51
inputLines : List <String >,
53
52
expectedLines : List <String >
54
53
) {
55
54
val output = StringWriter ()
56
- val reader = StringReader (inputLines.joinToString(" \n " ))
57
- generate(output, reader.readLines())
55
+ generate(output, inputLines)
58
56
val outputLines = output.toString().lines()
59
57
60
58
assertEquals(expectedLines, outputLines)
You can’t perform that action at this time.
0 commit comments