Json-Fixtures

Simple json fixtures with test rules and annotations

Лицензия

Лицензия

Категории

Категории

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

Группа

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

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

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

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

0.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Json-Fixtures
Simple json fixtures with test rules and annotations
Ссылка на сайт

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

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

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

https://github.com/tonivade/json-fixtures

Скачать json-fixtures

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
com.google.code.gson : gson jar 2.3.1

test (2)

Идентификатор библиотеки Тип Версия
org.mockito : mockito-all jar 1.10.19
org.hamcrest : hamcrest-library jar 1.3

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

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

json-fixtures

Json-Fixtures is a library to simplify tests. You can define fixtures using json and load inside your tests using annotations.

Supported types:

  • Pojos
  • Arrays of pojos
  • Collections of Pojos
    • List
    • Set
    • Collection
  • Maps of Pojos

Example

@Rule
public JsonFixturesTestRule rule = new JsonFixturesTestRule(this);

@JsonFixture("/files/data.json")
public Data data;

@JsonFixture("/files/list.json")
public List<Data> dataList;

@JsonFixture("/files/list.json")
public Set<Data> dataSet;

@JsonFixture("/files/list.json")
public Collection<Data> dataCollection;

@JsonFixture("/files/list.json")
public Data[] dataArray;

@JsonFixture("/files/map.json")
public Map<String, Data> dataMap;

Build Status

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

Версия
0.2.0