Reformatted with Scalariform

This commit is contained in:
Enno Runne 2018-07-01 16:55:31 +02:00
parent 207f6e993b
commit 1672b9b9b8
3 changed files with 10 additions and 10 deletions
config/src/test/scala/com/typesafe/config/impl

View File

@ -280,13 +280,13 @@ class ConfigValueTest extends TestUtils {
}
/**
* Reproduces the issue <a href=https://github.com/lightbend/config/issues/461>#461</a>.
* <p>
* We use a custom de-/serializer that encodes String objects in a JDK-incompatible way. Encoding used here
* is rather simplistic: a long indicating the length in bytes (JDK uses a variable length integer) followed
* by the string's bytes. Running this test with the original SerializedConfigValue.readExternal()
* implementation results in an EOFException thrown during deserialization.
*/
* Reproduces the issue <a href=https://github.com/lightbend/config/issues/461>#461</a>.
* <p>
* We use a custom de-/serializer that encodes String objects in a JDK-incompatible way. Encoding used here
* is rather simplistic: a long indicating the length in bytes (JDK uses a variable length integer) followed
* by the string's bytes. Running this test with the original SerializedConfigValue.readExternal()
* implementation results in an EOFException thrown during deserialization.
*/
@Test
def configConfigCustomSerializable() {
val aMap = configMap("a" -> 1, "b" -> 2, "c" -> 3)
@ -295,7 +295,7 @@ class ConfigValueTest extends TestUtils {
assertEquals(expected, actual)
}
@Test
def configListEquality() {
val aScalaSeq = Seq(1, 2, 3) map { intValue(_): AbstractConfigValue }

View File

@ -551,7 +551,7 @@ abstract trait TestUtils {
{ s: String => s.replace(" ", "") }, // this would break with whitespace in a key or value
{ s: String => s.replace(":", " : ") }, // could break with : in a key or value
{ s: String => s.replace(",", " , ") } // could break with , in a key or value
)
)
tests flatMap { t =>
if (t.whitespaceMatters) {
Seq(t)

View File

@ -198,7 +198,7 @@ class TokenizerTest extends TestUtils {
"""\"\""", // file ends with a backslash
"$", // file ends with a $
"${" // file ends with a ${
)
)
for (t <- invalidTests) {
val tokenized = tokenizeAsList(t)