Skip to content

Commit

Permalink
documenter args setup fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Nov 22, 2024
1 parent dfedd2e commit 9757186
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public void setUp(){
try {
ArgumentsUtil<Arguments> argsUtil = new ArgumentsUtil<Arguments>(Arguments.class);
IArguments args = argsUtil.createArgumentsFromJSON(getClass().getResource("/testDocumenter/config.json").getFile());
args = (IArguments) argsUtil.createArgumentsFromJSON(getClass().getResource("/testDocumenter/config.json").getFile());
//fail("Exception was expected for missing config file");
} catch (Throwable e) {
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public TestDataDocumenter(SparkSession sparkSession) {
public void setUp(){
try {
String configPath = getClass().getResource("../../../../documenter/config.json").getFile();
ArgumentsUtil<IArguments> argsUtil = new ArgumentsUtil<IArguments>(IArguments.class);
ArgumentsUtil<Arguments> argsUtil = new ArgumentsUtil<Arguments>(Arguments.class);
docArguments = argsUtil.createArgumentsFromJSON(configPath);
} catch (Throwable e) {
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void setUp(){

try {
String configPath = getClass().getResource("../../../../documenter/config.json").getFile();
ArgumentsUtil<IArguments> argsUtil = new ArgumentsUtil<IArguments>(IArguments.class);
ArgumentsUtil<Arguments> argsUtil = new ArgumentsUtil<Arguments>(Arguments.class);
docArguments = argsUtil.createArgumentsFromJSON(configPath);
String zinggDirPath = getClass().getResource("../../../../"+docArguments.getZinggDir()).getFile();
docArguments.setZinggDir(zinggDirPath);
Expand Down

0 comments on commit 9757186

Please sign in to comment.