add ut
This commit is contained in:
parent
5468bd9d2a
commit
6dde5a1eb2
@ -24,8 +24,9 @@ import org.apache.spark.SparkFunSuite
|
||||
class AuthMethodsSuite extends SparkFunSuite {
|
||||
|
||||
test("testGetValidAuthMethod") {
|
||||
assert(new AuthMethods{}.authMethodStr === null)
|
||||
assert(AuthMethods.getValidAuthMethod("NONE") === AuthMethods.NONE)
|
||||
assert(AuthMethods.NONE.authMethodStr === "NONE")
|
||||
intercept[AuthenticationException](AuthMethods.getValidAuthMethod("ELSE"))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user