diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-26 16:04:30 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-26 16:04:30 +0100 |
commit | 71010ae3fefbe897227343e44573385df9cd60cc (patch) | |
tree | 16cac848741881171ba715712547aae15bba5dc2 /module/ri-engine/src/test/java/io | |
parent | 63e4e5fac646766d8e574e2e9a539e03f54fd87c (diff) | |
download | rules-sandbox-71010ae3fefbe897227343e44573385df9cd60cc.tar.gz rules-sandbox-71010ae3fefbe897227343e44573385df9cd60cc.tar.bz2 rules-sandbox-71010ae3fefbe897227343e44573385df9cd60cc.tar.xz rules-sandbox-71010ae3fefbe897227343e44573385df9cd60cc.zip |
Better main() support.
Diffstat (limited to 'module/ri-engine/src/test/java/io')
-rw-r--r-- | module/ri-engine/src/test/java/io/trygvis/rules/engine/WireguardTestMain.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/module/ri-engine/src/test/java/io/trygvis/rules/engine/WireguardTestMain.java b/module/ri-engine/src/test/java/io/trygvis/rules/engine/WireguardTestMain.java new file mode 100644 index 0000000..20aeffa --- /dev/null +++ b/module/ri-engine/src/test/java/io/trygvis/rules/engine/WireguardTestMain.java @@ -0,0 +1,19 @@ +package io.trygvis.rules.engine; + +import io.trygvis.rules.engine.cli.RunCommand; + +import java.io.File; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +class WireguardTestMain { + public static void main(String[] args) throws Exception { + var c = new RunCommand(); + c.name = "acme"; + c.input = new File("acme.yaml"); + c.outputState = new File("out/acme/wireguard.yaml"); + c.agendaGroups = new String[]{"init", "generate"}; + c.generatedOutput = new File("acme-wireguard"); + assertEquals(0, c.call()); + } +} |