You may be able to get data streams from your unit tests. If you have instance A and mock B , and you expect instance C be passed as prameter to B.bar(Object) when you call A.foo(C) . In such cases, you get a stream of data from one object to another.
The second task is to check the configuration of the application. If you find that instance D configured with instance E , which itself is configured with instance F , you can combine the streams of data that you received from your unit tests.
But I do not know any implementation for this. But both parts seem relatively easy to implement. In the first part, you need to connect to your mocking structure. The second part is simple if you use dependency injection.
EDIT:
If you have collected all this data, you can, for example, use the Eclipse UML API to create diagrams.
source share