Mockito Groovy Support

A fix to allow you to use Mockito with Groovy

Лицензия

Лицензия

Категории

Категории

Groovy Языки программирования Mockito Тестирование компонентов
Группа

Группа

com.cyrusinnovation
Идентификатор

Идентификатор

mockito-groovy-support
Последняя версия

Последняя версия

1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Mockito Groovy Support
A fix to allow you to use Mockito with Groovy
Ссылка на сайт

Ссылка на сайт

https://github.com/cyrusinnovation/mockito-groovy-support
Организация-разработчик

Организация-разработчик

Cyrus Innovation
Система контроля версий

Система контроля версий

https://github.com/cyrusinnovation/mockito-groovy-support

Скачать mockito-groovy-support

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.cyrusinnovation/mockito-groovy-support/ -->
<dependency>
    <groupId>com.cyrusinnovation</groupId>
    <artifactId>mockito-groovy-support</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.cyrusinnovation/mockito-groovy-support/
implementation 'com.cyrusinnovation:mockito-groovy-support:1.3'
// https://jarcasting.com/artifacts/com.cyrusinnovation/mockito-groovy-support/
implementation ("com.cyrusinnovation:mockito-groovy-support:1.3")
'com.cyrusinnovation:mockito-groovy-support:jar:1.3'
<dependency org="com.cyrusinnovation" name="mockito-groovy-support" rev="1.3">
  <artifact name="mockito-groovy-support" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.cyrusinnovation', module='mockito-groovy-support', version='1.3')
)
libraryDependencies += "com.cyrusinnovation" % "mockito-groovy-support" % "1.3"
[com.cyrusinnovation/mockito-groovy-support "1.3"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.codehaus.groovy : groovy-all jar 1.8.6
org.mockito : mockito-all jar 1.9.5

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.10

Модули Проекта

Данный проект не имеет модулей.

Why?

You're using Mockito and Groovy. Maybe you've noticed that, when you try to mock a Groovy class from a Groovy test, it fails horribly. Now it won't!

Specifically, this library provides a workaround for Mockito Issue 303: http://code.google.com/p/mockito/issues/detail?id=303

How do you use it?

  1. Include mockito-groovy-support on your classpath.
  2. Use Mockito from Groovy as you normally would.
  3. Everything should just work. If it doesn't, let us know.

Where can I get it?

Download the jar from the "releases" tab here in github, or use the Maven central repository. Enjoy!

Who made this?

Moss Collum and Laura Dean of Cyrus Innovation wrote the original version. Jostein Gogstad contributed the code to support verification and argument matchers.

Email us at: mockito-groovy-developers@cyruslists.com

Changelog

  • 1.3: Fix a bug in working with groovy subclasses; thanks to Shawn Garner and Tim Andersen for this fix.
  • 1.2: Work seamlessly with Mockito using MockMaker extension point.
  • 1.1: Support verification and argument matchers.
  • 1.0.1: Made project available through Maven.
  • 1.0: Support basic stubbing of Groovy classes.
com.cyrusinnovation

Cyrus Innovation

Версии библиотеки

Версия
1.3
1.2
1.0.1