Java Faker
instancio
Our great sponsors
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Onboard AI - Learn any GitHub repo in 59 seconds
- SaaSHub - Software Alternatives and Reviews
Java Faker | instancio | |
---|---|---|
12 | 7 | |
4,408 | 638 | |
1.2% | 5.5% | |
0.0 | 0.0 | |
about 1 month ago | 4 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
- Built a library to help generate test pojos with relevant but random data. I’d love some feedback.
-
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?
-
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.
-
Reasons to avoid RandomStringUtils for test data generation
[]JavaFaker](https://github.com/DiUS/java-faker) is an open-source library based on Faker to generate fake data.
-
Test Data Factory: Why and How to Use
For that I will introduce you JavaFaker, a is a library that can generate fake random data every time it’s called. For example: if you generate a name all the names generated will be different.
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
Instancio is a Java library that aims to eliminate (or at least reduce) manual data setup in unit tests. In a nutshell, you specify a class, and it returns a fully-populated instance. Github's README provides a quick overview: https://github.com/instancio/instancio/
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
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
avoid-random-string-utils - Example of the RandomStringUtils class vs JavaFaker to generate data
faker - A library for generating fake data such as names, addresses, and phone numbers. [Moved to: https://github.com/faker-ruby/faker]
Flowable (V6) - A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
restassured-complete-basic-example - A complete API Test Architecture example using Java and RestAssured providing a real-world example and continuous delivery ready.
Mockneat - MockNeat - the modern faker lib.
selenium-java-lean-test-achitecture - Ready to use Lean Test Automation Architecture using Java and Selenium WebDriver to speed up your test automation
beanmother - A library for setting up Java objects as test data.
kotlin-faker - https://serpro69.github.io/kotlin-faker/ Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
Mockito - Most popular Mocking framework for unit tests written in Java