In this article Java Unit Tests make easy — Random Values with PODAM, we discuss how to generate random values to object, collections we use on Junit test using PODAM library

hen we write unit test cases for functions, a big headache for developers is filling mock data to our objects, collections etc.

For example, let see what would be the test case to fetch an object from a function.

Please look below code snippet. In this object contains the list of child objects too.

In this code snippet, we can see a lot of hardcode data we have to use to fill the object with values.

Now let see what we can do for this matter…

Any good solution??

Yes, we have PODAM.

#spring-boot #java #junit #podam #java unit tests make easy — random values with podam #java unit tests

Java Unit Tests make easy — Random Values with PODAM
2.35 GEEK