Skip to content

Commit

Permalink
added simple test for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fhopf committed Aug 2, 2011
1 parent 2be9ab5 commit 4d6c8ef
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/scala/org/synyx/git/RepositoryServiceTest.scala
Expand Up @@ -22,4 +22,20 @@ class RepositoryServiceTest extends FunSuite with ShouldMatchers {

}

test("log returns a list of commits") {
val repo = new Repository(new File("/tmp/" + System.currentTimeMillis()), "git://github.com/fhopf/maven-deployment-from-webapp.git");

service.updateRepo(repo)

import scala.collection.JavaConversions._

val commits = service.log(repo)

commits.isEmpty should be(false)

for (commit <- commits) {
println(commit)
}

}
}

0 comments on commit 4d6c8ef

Please sign in to comment.