Comments (2)
Hi,
I think it's possible. Every generator is a MockUnit (that's the interface). And also a specific class that implements this interface or a more specific one (MockUnitString, MockUnitInt, etc.).
For example Names: https://github.com/nomemory/mockneat/blob/master/src/main/java/net/andreinc/mockneat/unit/user/Names.java
I don't see any reason it won't work what you want to achieve. You can keep an instance of Names in xgen.First_Name
and then call get() through reflection to get a different name all the time.
Depending on how much you can modify your internal tool, you can also mingle scripts in the JSON you are using for your schemas. I did something similar in:
https://github.com/nomemory/serverneat#json-response-dynamic---using-mockneat
Keep me posted.
PS: another idea is to serialise all the Pojos you generated (see serialize() method from MockUnit) and the read them from the disk.
from mockneat.
@cvgaviao Any luck? Need any help?
from mockneat.
Related Issues (20)
- Try Using Rultor, Makes Life Easier
- Automated Management
- Question: Is there have anyway support combine mock data
- markovs() function throw exception HOT 1
- question: How to add unique objects to a list HOT 3
- tutorial for shuffling a subset of properties, given an instance of object HOT 1
- Apache Common Text Vulnerabilities (version must be ≥ 1.9)
- localDates() does not work when using a formatter that contains time HOT 4
- subsequent run data consistency HOT 2
- If you can use it easily in spring or spring boot, it would be fine. HOT 1
- No instructions to use this project from Maven? HOT 10
- Industries is misspelled HOT 3
- using list(MockUnitInt) doesn't generate a new random value each time. HOT 6
- Website search broken HOT 1
- Incorrect documentation around secure random seeding
- bulk data vs sequential
- Markovs doesn't honor RandomType HOT 5
- Antivirus complains of Java Trojan for mockneat-0.3.8.jar HOT 7
- probabilities use double loss of accuracy HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockneat.