Module: Buildr::JMock
- Defined in:
- lib/buildr/java/tests.rb
Overview
JMock is available when using JUnit and TestNG, JBehave.
Constant Summary collapse
- VERSION =
'2.5.1'
Class Method Summary collapse
Class Method Details
.dependencies ⇒ Object
104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/buildr/java/tests.rb', line 104 def dependencies two_or_later = version[0,1].to_i >= 2 group = two_or_later ? "org.jmock" : "jmock" @dependencies ||= ["#{group}:jmock:jar:#{version}"] if two_or_later @dependencies << "org.jmock:jmock-junit#{Buildr::JUnit.version.to_s[0,1]}:jar:#{version}" @dependencies << "org.hamcrest:hamcrest-core:jar:1.1" @dependencies << "org.hamcrest:hamcrest-library:jar:1.1" end @dependencies end |