instancio
instancio-samples
instancio | instancio-samples | |
---|---|---|
7 | 2 | |
748 | 1 | |
1.3% | - | |
9.7 | 5.8 | |
6 days ago | about 1 month ago | |
Java | Java | |
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.
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
instancio-samples
-
Instancio 2.2.0 released
You can actually combine the two libraries together. Somebody suggested an integration in my earlier post and I ended up creating a sample project. It uses Instancio SPI and DataFaker to auto-generate POJOs with realistic looking data.
-
Data Generator For Unit Tests
You can find the book-mapper-sample project at https://github.com/instancio/instancio-samples
What are some alternatives?
Java Faker - Brings the popular ruby faker gem to Java
instancio-quickstart - Sample project demonstarting main features of Instancio
fixture-monkey - Let Fixture Monkey generate test instances including edge cases automatically
datafaker - Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
Mockito - Most popular Mocking framework for unit tests written in Java
REST Assured - Java DSL for easy testing of REST services
atlantafx - Modern JavaFX CSS theme collection with additional controls.
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.
JavaCPP - The missing bridge between Java and native C++
JGiven - Behavior-Driven Development in plain Java
Agrona - High Performance data structures and utility methods for Java