jFairy

jFairy - Java fake data generator

Лицензия

Лицензия

Группа

Группа

org.jfairy
Идентификатор

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

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

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

0.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

jFairy
jFairy - Java fake data generator
Система контроля версий

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

https://github.com/Codearte/jfairy

Скачать jfairy

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

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

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
com.google.guava : guava jar [15.0,)
com.google.inject : guice jar 3.0
org.yaml : snakeyaml jar [1.9,2.0)
org.iban4j : iban4j jar 2.1.1
com.google.inject.extensions : guice-assistedinject jar 3.0
joda-time : joda-time jar 2.3
org.apache.commons : commons-lang3 jar 3.3.2
org.slf4j : slf4j-api jar 1.7.7

test (6)

Идентификатор библиотеки Тип Версия
commons-validator : commons-validator jar 1.4.0
org.objenesis : objenesis jar 2.1
org.codehaus.groovy : groovy-all jar 2.3.4
cglib : cglib-nodep jar 2.2.2
org.spockframework : spock-core jar 0.7-groovy-2.0
ch.qos.logback : logback-classic jar 1.1.2

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

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

jFairy by Codearte

Build Status Maven Central Javadoc Coverage Status Stack Overflow Join the chat at https://gitter.im/Codearte/jfairy

Java fake data generator. Based on Wikipedia:

Fairyland, in folklore, is the fabulous land or abode of fairies or fays.

Usage

Creating simple objects:

Fairy fairy = Fairy.create();
Person person = fairy.person();

System.out.println(person.fullName());            
// Chloe Barker
System.out.println(person.email());               
// barker@yahoo.com
System.out.println(person.telephoneNumber());     
// 690-950-802

Person adultMale = fairy.person(male(), minAge(21));
System.out.println(adultMale.isMale());           
// true
System.out.println(adultMale.dateOfBirth());      
// at least 21 years earlier

Creating related objects:

Fairy fairy = Fairy.create();
Company company = fairy.company();
System.out.println(company.name());          
// Robuten Associates
System.out.println(company.url());           
// http://www.robuteniaassociates.com

Person salesman = fairy.person(withCompany(company));
System.out.println(salesman.fullName());     
// Juan Camacho
System.out.println(salesman.companyEmail()); 
// juan.camacho@robuteniaassociates.com

Locale support:

Fairy enFairy = Fairy.create();                               
// Locale.ENGLISH is default
Fairy plFairy = Fairy.create(Locale.forLanguageTag("pl"));    
// Polish version

Other samples

Look into code samples

Building

This project can be built using gradle command:

./gradlew build

Installation

Installation into maven local repository

./gradlew publishToMavenLocal
org.jfairy

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

Версия
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.0