Skip to content

Commit

Permalink
Add testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed Jan 30, 2024
1 parent b9e87f8 commit 5494dd2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/java/com/askimed/nf/test/lang/ProcessTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,22 @@ public void testMd5Snapshots() throws Exception {

}

@Test
public void testMd5ValidGzip() throws Exception {

App app = new App();
int exitCode = app.run(new String[] { "test", "test-data/process/snapshots/gzip-success.nf.test" });
assertEquals(0, exitCode);

}

@Test
public void testMd5InvalidGzip() throws Exception {

App app = new App();
int exitCode = app.run(new String[] { "test", "test-data/process/snapshots/gzip-fail.nf.test" });
assertEquals(1, exitCode);

}

}

0 comments on commit 5494dd2

Please sign in to comment.