Hamcrest JSON

Hamcrest JSON matchers

Лицензия

Лицензия

Категории

Категории

JSON Данные
Группа

Группа

uk.co.datumedge
Идентификатор

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

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

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

0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Hamcrest JSON
Hamcrest JSON matchers
Ссылка на сайт

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

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

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

http://github.com/hertzsprung/hamcrest-json

Скачать hamcrest-json

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.skyscreamer : jsonassert jar 1.1.1
org.hamcrest : hamcrest-core jar 1.3

test (3)

Идентификатор библиотеки Тип Версия
org.hamcrest : hamcrest-library jar 1.3
org.jmock : jmock-junit4 jar 2.6.0-RC2
junit : junit jar 4.10

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

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

Hamcrest matchers for comparing JSON documents, backed by the JSONassert library. The code is released under the MIT license.

Installation

To install from Maven Central:

<dependency>
	<groupId>uk.co.datumedge</groupId>
	<artifactId>hamcrest-json</artifactId>
	<version>0.1</version>
</dependency>

Usage

assertThat(
	"{\"age\":43, \"friend_ids\":[16, 52, 23]}",
	sameJSONAs("{\"friend_ids\":[52, 23, 16]}")
		.allowingExtraUnexpectedFields()
		.allowingAnyArrayOrdering());

Resources

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

Версия
0.2
0.1