Author: vborja
Date: Tue Sep 23 12:28:35 2008
New Revision: 698314
URL: http://svn.apache.org/viewvc?rev=698314&view=rev
Log:
Removed code duplication on merge from jtestr branch
Modified:
incubator/buildr/trunk/lib/buildr/java/tests.rb
Modified: incubator/buildr/trunk/lib/buildr/java/tests.rb
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/java/tests.rb?rev=698314&r1=698313&r2=698314&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/java/tests.rb (original)
+++ incubator/buildr/trunk/lib/buildr/java/tests.rb Tue Sep 23 12:28:35 2008
@@ -294,23 +294,6 @@
end
end
- class << self
- def version
- Buildr.settings.build['testng'] || VERSION
- end
-
- def dependencies
- ["org.testng:testng:jar:jdk15:#{version}"]+ JMock.dependencies
- end
-
- private
- def const_missing(const)
- return super unless const == :REQUIRES # TODO: remove in 1.5
- Buildr.application.deprecated "Please use TestNG.dependencies/.version
instead of TestNG::REQUIRES/VERSION"
- dependencies
- end
- end
-
def tests(dependencies) #:nodoc:
filter_classes(dependencies,
:class_annotations => %w{org.testng.annotations.Test},