How to generate blank objects #880
-
Is there a way by which we can disable auto populating fields with random values. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If I understand correctly, you have an object pre-populated with hard-coded values, e.g. Person p = new Person();
p.setName("test-name");
// etc ... You don't want any other fields populated with random values. What are you trying to do with this populated object using the library? Can you provide a specific example? |
Beta Was this translation helpful? Give feedback.
-
Next release https://www.instancio.org/user-guide/#creating-blank-objects |
Beta Was this translation helpful? Give feedback.
Next release
4.7.0
will have support for creating blank objects:https://www.instancio.org/user-guide/#creating-blank-objects