This commit is contained in:
Kent Yao 2018-06-22 17:53:56 +08:00
parent 5468bd9d2a
commit 6dde5a1eb2

View File

@ -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"))
}
}