File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
core/src/test/scala/org/apache/spark/util Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .spark .util
19
19
20
- import org .apache .spark .{SparkException , SparkFunSuite }
20
+ import org .apache .spark .{SparkFunSuite }
21
21
import org .apache .spark .internal .Logging
22
22
23
23
object TestObjectLyftUtils {
24
24
var testVar = 0L
25
- def setVal () = {
25
+ def setVal (): Unit = {
26
26
testVar = 1L
27
27
}
28
28
}
29
29
30
30
class LyftUtilsSuite extends SparkFunSuite with ResetSystemProperties with Logging {
31
31
32
32
test(" callObjectMethodNoArguments" ) {
33
- // Test calling the method using reflection 1
34
- val v = LyftUtils .callObjectMethodNoArguments(" org.apache.spark.util.TestObjectLyftUtils$" , " setVal" )
33
+ // Test calling the method using reflection
34
+ val v = LyftUtils .callObjectMethodNoArguments(
35
+ " org.apache.spark.util.TestObjectLyftUtils$" , " setVal" )
35
36
assert(v === true )
36
37
assert(TestObjectLyftUtils .testVar === 1 )
37
- assert(false ==
38
- LyftUtils .callObjectMethodNoArguments( " org.apache.spark.util.TestObjectLyftUtils$" , " setVal1" ))
38
+ assert(false == LyftUtils .callObjectMethodNoArguments(
39
+ " org.apache.spark.util.TestObjectLyftUtils$" , " setVal1" ))
39
40
}
40
41
}
You can’t perform that action at this time.
0 commit comments