aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/app-resolver-maven.bats27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/app-resolver-maven.bats b/test/app-resolver-maven.bats
new file mode 100755
index 0000000..e5a5474
--- /dev/null
+++ b/test/app-resolver-maven.bats
@@ -0,0 +1,27 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "plain init" {
+ mkdir .app
+ app resolver-maven init my-group:my-artifact:1.0-SNAPSHOT
+ app cat-conf
+ eq '${lines[0]}' "app.version=1.0-SNAPSHOT"
+ eq '${lines[1]}' "maven.artifact_id=my-artifact"
+ eq '${lines[2]}' "maven.group_id=my-group"
+ eq '${lines[3]}' "maven.repo=http://repo1.maven.org"
+ eq '${#lines[*]}' 4
+}
+
+@test "init with classifier" {
+ mkdir .app
+ app resolver-maven init my-group:my-artifact:app:1.0-SNAPSHOT
+ app cat-conf
+ eq '${lines[0]}' "app.version=1.0-SNAPSHOT"
+ eq '${lines[1]}' "maven.artifact_id=my-artifact"
+ eq '${lines[2]}' "maven.classifier=app"
+ eq '${lines[3]}' "maven.group_id=my-group"
+ eq '${lines[4]}' "maven.repo=http://repo1.maven.org"
+ eq '${#lines[*]}' 5
+}