Skip to content

Commit

Permalink
Adds tests for openjdk-7 and oracle-7
Browse files Browse the repository at this point in the history
  • Loading branch information
carmstrong committed Jan 16, 2014
1 parent 64138da commit 9c38af2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/openjdk-7/bats/verify_openjdk-7.bats
@@ -0,0 +1,9 @@
@test "installs the correct version of the jdk" {
java -version 2>&1 | grep 1.7
}

@test "properly sets JAVA_HOME environment variable" {
source /etc/profile.d/jdk.sh
run test -d $JAVA_HOME
[ "$status" -eq 0 ]
}
9 changes: 9 additions & 0 deletions test/integration/oracle-7/bats/verify_oracle-7.bats
@@ -0,0 +1,9 @@
@test "installs the correct version of the jdk" {
java -version 2>&1 | grep 1.7
}

@test "properly sets JAVA_HOME environment variable" {
source /etc/profile.d/jdk.sh
run test -d $JAVA_HOME
[ "$status" -eq 0 ]
}

0 comments on commit 9c38af2

Please sign in to comment.