Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaido91 committed Dec 19, 2017
1 parent 2ecdc73 commit 26fe05e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,10 @@ class BucketizerSuite extends SparkFunSuite with MLlibTestSparkContext with Defa
.setOutputCols(Array("result1", "result2"))

Seq(invalid1, invalid2, invalid3).foreach { bucketizer =>
// When both inputCol and inputCols are set, we throw Exception.
val e = intercept[IllegalArgumentException] {
// When both inputCol/outputCol and inputCols/outputCols are set, we throw Exception.
intercept[IllegalArgumentException] {
bucketizer.transform(df)
}
assert(e.getMessage.contains("Both `inputCol` and `inputCols` are set"))
}
}
}
Expand Down

0 comments on commit 26fe05e

Please sign in to comment.