BAEL-2655 Sample code (#6731)

* Upgraded dependencies

* Fixed test in Linux Environment

* Added I/O samples

* FIX End of line reference, previous version was OS dependent

* CHORE Added junit5 dependency

* UPGRADE gradle version, UPDATE versions

* Deleted emtpy lines
This commit is contained in:
Juan Moreno
2019-04-18 23:40:33 -03:00
committed by KevinGilmore
parent 062ea56d7a
commit f6b1967cbe
10 changed files with 163 additions and 21 deletions

View File

@@ -8,7 +8,8 @@ import kotlin.test.assertEquals
class InputStreamToStringTest {
private val fileName = "src/test/resources/inputstream2string.txt"
private val fileFullContent = "Computer programming can be a hassle\r\n" +
private val endOfLine = System.lineSeparator()
private val fileFullContent = "Computer programming can be a hassle$endOfLine" +
"It's like trying to take a defended castle"
@Test
@@ -46,7 +47,7 @@ class InputStreamToStringTest {
} finally {
reader.close()
}
assertEquals(fileFullContent.replace("\r\n", ""), content.toString())
assertEquals(fileFullContent.replace(endOfLine, ""), content.toString())
}