@@ -154,25 +154,25 @@ class JavaConverterTest {
154
154
assertSerializedCorrectly(pkg, pkg.asJava())
155
155
}
156
156
157
- def assertEach [E , C [E ] <: Seq [E ]](expected : C [E ], serialized : Any )(pairwiseAssertion : (E , Any ) => Unit ) {
157
+ def assertEach [E , C [E ] <: Seq [E ]](expected : C [E ], serialized : Any )(pairwiseAssertion : (E , Any ) => Unit ): Unit = {
158
158
val actual = serialized.asInstanceOf [JList [_]].asScala.toList
159
159
assertEquals(expected.length, actual.length)
160
160
for ((exp, act) <- expected zip actual) {
161
161
pairwiseAssertion(exp, act)
162
162
}
163
163
}
164
- def assertSameSeq [T , C [T ] <: Seq [T ]](expected : C [T ], serialized : Any ) = {
164
+ def assertSameSeq [T , C [T ] <: Seq [T ]](expected : C [T ], serialized : Any ): Unit = {
165
165
val actual = serialized.asInstanceOf [java.util.List [T ]].asScala.toList
166
166
assertEquals(expected, actual);
167
167
}
168
- def assertSerializedCorrectly (expected : ParamList , serialized : Any ) {
168
+ def assertSerializedCorrectly (expected : ParamList , serialized : Any ): Unit = {
169
169
val actual = serialized.asInstanceOf [JMap [String , _]]
170
170
assertEach(expected.list, actual.get(" list" )) {(exp, act) =>
171
171
assertSerializedCorrectly(exp, act)
172
172
}
173
173
assertEquals(expected.isImplicit, actual.get(" isImplicit" ))
174
174
}
175
- def assertSerializedCorrectly (expected : Reference , serialized : Any ) {
175
+ def assertSerializedCorrectly (expected : Reference , serialized : Any ): Unit = {
176
176
val actual = serialized.asInstanceOf [JMap [String , _]]
177
177
expected match {
178
178
case TypeReference (title, tpeLink, paramLinks) =>
@@ -209,7 +209,7 @@ class JavaConverterTest {
209
209
case EmptyReference =>
210
210
}
211
211
}
212
- def assertSerializedCorrectly (expected : MaterializableLink , serialized : Any ) {
212
+ def assertSerializedCorrectly (expected : MaterializableLink , serialized : Any ): Unit = {
213
213
val actual = serialized.asInstanceOf [JMap [String , _]]
214
214
expected match {
215
215
case UnsetLink (title, query) =>
@@ -223,7 +223,7 @@ class JavaConverterTest {
223
223
assertEquals(target, actual.get(" target" ))
224
224
}
225
225
}
226
- def assertSerializedCorrectly (expected : Entity , serialized : Any ) {
226
+ def assertSerializedCorrectly (expected : Entity , serialized : Any ): Unit = {
227
227
val actual = serialized.asInstanceOf [JMap [String , _]]
228
228
assertEquals(expected.name, actual.get(" name" ))
229
229
assertEquals(expected.kind, actual.get(" kind" ))
0 commit comments