aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-10-31 16:27:09 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-11-01 19:58:08 +0100
commitf743a82f560a2b1da4bc1b5f3236c4226fa6a9ab (patch)
treee10a6c9db89e7fbae53ffcc0a1e080467a3a961e /test
parent302938d3671048ebc4fd397e4cf6f8f0beed0579 (diff)
downloadapp.sh-f743a82f560a2b1da4bc1b5f3236c4226fa6a9ab.tar.gz
app.sh-f743a82f560a2b1da4bc1b5f3236c4226fa6a9ab.tar.bz2
app.sh-f743a82f560a2b1da4bc1b5f3236c4226fa6a9ab.tar.xz
app.sh-f743a82f560a2b1da4bc1b5f3236c4226fa6a9ab.zip
app-resolver-maven: Adding support for artifacts with classifier.
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
+}