aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-19 19:57:20 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-27 23:54:15 -0400
commit0a6f67c70d5f878d3045bbac9b70f94859eb47d9 (patch)
treeaf7949acaad17c2d0793d58e40506ac54d7e514b /test
parent88854cfeb423a414296ffe2b04938d1b99fb4868 (diff)
downloadcbt-0a6f67c70d5f878d3045bbac9b70f94859eb47d9.tar.gz
cbt-0a6f67c70d5f878d3045bbac9b70f94859eb47d9.tar.bz2
cbt-0a6f67c70d5f878d3045bbac9b70f94859eb47d9.zip
test for MavenDependency equality
Diffstat (limited to 'test')
-rw-r--r--test/test.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index 58c5246..5c107fe 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -187,6 +187,13 @@ object Main{
assert(cp.strings.distinct == cp.strings, "duplicates in classpath: " ++ cp.string)
}
+ {
+ def d = Resolver(mavenCentral).bindOne(
+ MavenDependency("net.incongru.watchservice","barbary-watchservice","1.0")
+ )
+ assert(d === d)
+ }
+
// test that messed up artifacts crash with an assertion (which should tell the user what's up)
assertException[AssertionError](){
Resolver(mavenCentral).bindOne( MavenDependency("com.jcraft", "jsch", " 0.1.53") ).classpath