mirror of
https://github.com/lightbend/config.git
synced 2025-03-26 20:10:50 +08:00
Reformatted with Scalariform
This commit is contained in:
parent
207f6e993b
commit
1672b9b9b8
config/src/test/scala/com/typesafe/config/impl
@ -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 }
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user