From 0a6f67c70d5f878d3045bbac9b70f94859eb47d9 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Sun, 19 Mar 2017 19:57:20 -0400 Subject: test for MavenDependency equality --- test/test.scala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 -- cgit v1.2.3