From 1767dfaa3fff746599395494d06a1f4ec00f7dbd Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Fri, 27 Mar 2020 14:31:26 +0100 Subject: [PATCH] method can be protected, it is meant to be used only in tests --- .../java/eu/dnetlib/dhp/oa/graph/SparkGraphImporterJob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/SparkGraphImporterJob.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/SparkGraphImporterJob.java index 4cce32ae0..e78635a81 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/SparkGraphImporterJob.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/SparkGraphImporterJob.java @@ -31,8 +31,8 @@ public class SparkGraphImporterJob { } } - // public for testing - public void runWith(SparkSession spark, String inputPath, String hiveDbName) { + // protected for testing + protected void runWith(SparkSession spark, String inputPath, String hiveDbName) { spark.sql(String.format("DROP DATABASE IF EXISTS %s CASCADE", hiveDbName)); spark.sql(String.format("CREATE DATABASE IF NOT EXISTS %s", hiveDbName));