Skip to content

Commit

Permalink
added test for new flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Frisch12 committed Jun 20, 2022
1 parent 7092bca commit b7c8149
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/plantuml/.gitignore
@@ -0,0 +1,2 @@
dist
dist2
Expand Up @@ -39,6 +39,21 @@ void execute() {

task.source(getClass().getClassLoader().getResource("puml-files").getPath());

task.getDeleteOutputBeforeBuild().set(true);

assertThrows(UnsupportedOperationException.class, task::execute);
}

@Test
void executeWithoutDelete() {
project.getPlugins().apply(PlantumlPlugin.class);

PlantumlTask task = project.getTasks().withType(PlantumlTask.class).getByName("plantUml");

task.source(getClass().getClassLoader().getResource("puml-files").getPath());

task.getDeleteOutputBeforeBuild().set(false);

assertThrows(UnsupportedOperationException.class, task::execute);
}

Expand Down

0 comments on commit b7c8149

Please sign in to comment.