Java Faker
instancio
Our great sponsors
Java Faker | instancio | |
---|---|---|
13 | 7 | |
4,548 | 741 | |
1.2% | 3.6% | |
0.0 | 9.7 | |
about 1 month ago | 7 days ago | |
Java | Java | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Java Faker
-
Leveling up your custom fake data with Faker.js
Faker was originally written in Perl and is also available as a library for Ruby, Java, and Python.
- Built a library to help generate test pojos with relevant but random data. I’d love some feedback.
-
Data Seeding With MongoDB
you can use faker java
-
Favorite hidden gem library?
JavaFaker for generating random data https://github.com/DiUS/java-faker
- Estudo sobre HTTP2 e protocolos binários - parte 2
- Estudo sobre HTTP2 e protocolos binários - parte 1
-
Datafaker: An Alternative to Using Production Data
I've been using https://github.com/DiUS/java-faker which seems to be much more popular. How is this one different?
-
Cucumber java Cannot resolve symbol 'github' when adding Faker to project
I'm using 1.0.2 from this repository: https://github.com/DiUS/java-faker
-
The right to delete: how faker.js exposed the fragile nature of open source culture, again
I'm Java developer. While we have had our fair share of shenanigans, if the people behind the Java equivalent of faker (https://github.com/DiUS/java-faker) went off the rails it wouldn't be anywhere near as much of an issue.
-
Datafaker, an alternative to using Production Data
This has another bottleneck, each time you request something, it ends up with a IO call to open a file, as all fake data is stored in a file: https://github.com/datafaker-net/datafaker/blob/master/src/main/resources/en/dragon_ball.yml I recently filed a bug to javafaker that in some cases file descriptor was never closed, resulting in even worse performance and memory leaks, killing our service after millions of method calls.
instancio
-
Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try.
Instancio for generating test data AssertJ Awaitility Quarkus FluentJdbc: a thin wrapper around jdbc, you can use it as an alternative for JPA and I use it in Quarkus
-
Instancio 2.2.0 released
I've been experimenting a little and will be adding support for method references in the next release. Here's issue link if you want to follow.
-
Java: Automating data setup in unit tests
Properly handling seeds and having reproducible objects was one of the main goals, so it should work as you'd expect. I'd suggest giving it a try and if you run into any issues, just post it on Github discussions.
- Data Generator For Unit Tests
- Instancio: Java library for auto-populating objects in unit tests
What are some alternatives?
datafaker - Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
Deep Dive - Fluent assertions library for Java
fixture-monkey - Let Fixture Monkey generate test instances including edge cases automatically
faker - A library for generating fake data such as names, addresses, and phone numbers. [Moved to: https://github.com/faker-ruby/faker]
Mockito - Most popular Mocking framework for unit tests written in Java
avoid-random-string-utils - Example of the RandomStringUtils class vs JavaFaker to generate data
REST Assured - Java DSL for easy testing of REST services
Flowable (V6) - A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
arquillian-core - Arquillian provides a component model for integration tests, which includes dependency injection and container life cycle management. Instead of managing a runtime in your test, Arquillian brings your test to the runtime.
restassured-complete-basic-example - A complete API Test Architecture example using Java and RestAssured providing a real-world example and continuous delivery ready.
atlantafx - Modern JavaFX CSS theme collection with additional controls.