Skip to content

Commit

Permalink
Reformatted with Scalariform
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru committed Jul 1, 2018
1 parent 207f6e9 commit 1672b9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -295,7 +295,7 @@ class ConfigValueTest extends TestUtils {

assertEquals(expected, actual)
}

@Test
def configListEquality() {
val aScalaSeq = Seq(1, 2, 3) map { intValue(_): AbstractConfigValue }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1672b9b

Please sign in to comment.