From f743a82f560a2b1da4bc1b5f3236c4226fa6a9ab Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 31 Oct 2013 16:27:09 +0100 Subject: app-resolver-maven: Adding support for artifacts with classifier. --- test/app-resolver-maven.bats | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 test/app-resolver-maven.bats (limited to 'test') 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 +} -- cgit v1.2.3