how to mock SparkSession in junit5. My junits are failing to load SparkSession after Java17 upgrade

  Kiến thức lập trình

SparkConf sparkConf=new SparkConf();

SparkSession sparkSession = SparjSessuib.builder().config(sparkConf).getOrCreate();

how to mock this in junit

I tried mockito but it has failed with NUll pointer exception.

*******.SparkConf.getAll() because conf is null

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT