Java Faker
StreamEx
Our great sponsors
Java Faker | StreamEx | |
---|---|---|
13 | 2 | |
4,559 | 2,147 | |
1.5% | - | |
0.0 | 6.4 | |
5 days ago | 14 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.
StreamEx
-
Favorite hidden gem library?
I really like StreamEx. I do not know why people do not use it often, the syntax is just wonderful.
-
Jodd – The Unbearable Lightness of Java
It gets more perverse if you need to flatMap, or transmute components of map types, etc. If you want even more power, take a look at https://github.com/amaembo/streamex. This sort of container manipulation bread and butter for business processing. I use it every day, sometimes with a dozen operations. This (with liberal use of `final` values) makes for some pretty functional-looking code.
I'll grant you the Kotlin or Scala version is slightly more compact. But not fundamentally different, like the Go version.
I (and the pretty much every language designer in the post-Java era) disagree with you about checked exceptions, but that's a whole different thread...
What are some alternatives?
datafaker - Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
jOOλ - jOOλ - The Missing Parts in Java 8 jOOλ improves the JDK libraries in areas where the Expert Group's focus was elsewhere. It adds tuple support, function support, and a lot of additional functionality around sequential Streams. The JDK 8's main efforts (default methods, lambdas, and the Stream API) were focused around maintaining backwards compatibility and implementing a functional API for parallelism.
instancio - A library that creates fully populated objects for your unit tests.
Javaslang - vʌvr (formerly called Javaslang) is a non-commercial, non-profit object-functional library that runs with Java 8+. It aims to reduce the lines of code and increase code quality.
Deep Dive - Fluent assertions library for Java
derive4j - Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.
faker - A library for generating fake data such as names, addresses, and phone numbers. [Moved to: https://github.com/faker-ruby/faker]
protonpack - Stream utilities for Java 8
avoid-random-string-utils - Example of the RandomStringUtils class vs JavaFaker to generate data
underscore-java - java port of Underscore.js
restassured-complete-basic-example - A complete API Test Architecture example using Java and RestAssured providing a real-world example and continuous delivery ready.
Functional Java - Backport of Java 8's lambda expressions to Java 7, 6 and 5