Skip to content

Commit

Permalink
Merge pull request #368 from navinrathore/DataDocumenterIssue
Browse files Browse the repository at this point in the history
Removed test involving reading generated file
  • Loading branch information
sonalgoyal authored Jun 27, 2022
2 parents 21e134a + 379a01e commit 6a6e1d8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions core/src/test/java/zingg/documenter/TestDataDocumenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Map;

import org.apache.commons.logging.Log;
Expand Down Expand Up @@ -34,22 +31,6 @@ public void setUp(){
}
}

@DisplayName ("Test DataDocumenter successfully generates doc")
@Test
public void testIfDataDocumenterGeneratedDocFile() throws Throwable {
try {
Files.deleteIfExists(Paths.get(args.getZinggDataDocFile()));
} catch (IOException e) {
e.printStackTrace();
}

DataDocumenter dataDoc = new DataDocumenter(spark, args);
dataDoc.data = PipeUtil.read(spark, false, false, args.getData());
dataDoc.createDataDocument();

assertTrue(Files.exists(Paths.get(args.getZinggDataDocFile())), "Data documentation file is not generated");
}

@DisplayName ("Test template data")
@Test
public void testPopulateTemplateData() throws Throwable {
Expand Down

0 comments on commit 6a6e1d8

Please sign in to comment.