Additional matchers for Hamcrest

Additional matchers for Hamcrest: guava, bean, etc.

Лицензия

Лицензия

Группа

Группа

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

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

hamcrest-extras
Последняя версия

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

0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Additional matchers for Hamcrest
Additional matchers for Hamcrest: guava, bean, etc.
Ссылка на сайт

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

https://github.com/gkonst/hamcrest-extras
Система контроля версий

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

https://github.com/gkonst/hamcrest-extras

Скачать hamcrest-extras

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

<!-- https://jarcasting.com/artifacts/com.github.gkonst/hamcrest-extras/ -->
<dependency>
    <groupId>com.github.gkonst</groupId>
    <artifactId>hamcrest-extras</artifactId>
    <version>0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.gkonst/hamcrest-extras/
implementation 'com.github.gkonst:hamcrest-extras:0.2'
// https://jarcasting.com/artifacts/com.github.gkonst/hamcrest-extras/
implementation ("com.github.gkonst:hamcrest-extras:0.2")
'com.github.gkonst:hamcrest-extras:jar:0.2'
<dependency org="com.github.gkonst" name="hamcrest-extras" rev="0.2">
  <artifact name="hamcrest-extras" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.gkonst', module='hamcrest-extras', version='0.2')
)
libraryDependencies += "com.github.gkonst" % "hamcrest-extras" % "0.2"
[com.github.gkonst/hamcrest-extras "0.2"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.hamcrest : hamcrest-library jar 1.3
com.google.guava : guava Необязательный jar 15.0

test (1)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.8.7

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

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

hamcrest-extras

Custom Hamcrest matchers for guava, beans, etc.

Build StatusCoverage Status

Usage

The static factory methods for all matchers are generated to com.github.gkonst.hamcrest.matchers.Matchers class for easy access.

Contents

The package contains the following matchers:

  • Guava IsOptional matchers
  • isAbsent() - matches that the target Optional is not present.
  • isPresent() - matches that the target Optional is present.
  • isValue(T value) - matches that the target Optional is Some and contains value equals given value.
  • isValue(Matcher<T> matcher) - matches that the target Optional is Some and contains value matches given matcher.
  • Bean TheSameIs matcher
  • theSameIs - matches that the target bean has the same field values
  • IO matchers
  • anExistingUrl - matches that the target url exists

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

Версия
0.2
0.1