# CloverETL Java testing framework

**URL:** <https://forum.cloverdx.com/t/cloveretl-java-testing-framework/1840>\
**Category:** CloverDX Platform\
**Created:** [March 28, 2017, 12:00am UTC](https://forum.cloverdx.com/t/cloveretl-java-testing-framework/1840 "2017-03-28T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eclogicalglue](https://avatars.discourse-cdn.com/v4/letter/e/ed8c4c/32.png) [@eclogicalglue](https://forum.cloverdx.com/u/eclogicalglue)\
**Post date:** [March 28, 2017, 12:00am UTC](https://forum.cloverdx.com/t/cloveretl-java-testing-framework/1840/1 "2017-03-28T00:00:00Z")

</div>

Hi Clover community,

I’m trying to write some tests using the Java testing framework, the one bonded to the **CloverTestComparator** sandbox.

I understand that calling **ICloverTestApi#compare** method we can check if the executing has passed through the given edge. We can edit the graph to write intermediary values into a database table or another destination and from my Java unit test interrogate the database and check if the generated value is what I’m expecting.

Ideally, what I would like to achieve, is to execute a single node, providing input data and retrieving output data after the execution so I can test the smallest unit possible. Can you confirm the only way for doing it is to change the graph to save intermediary results?

If it’s the only way, would it be possible to add a utility graph **DownloadFile** similar to **UploadFile**? In this way we could simply write and download csv/json files from the server. Open a connection to a database from a build server or a local development machine is tricky to do because of network restrictions.

Let me know if question is not clear.

Thank you,  
Egidio

---

<div class="post-metadata">

**Author:** ![imriskal](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@imriskal](https://forum.cloverdx.com/u/imriskal)\
**Post date:** [April 7, 2017, 6:56am UTC](https://forum.cloverdx.com/t/cloveretl-java-testing-framework/1840/2 "2017-04-07T06:56:55Z")

</div>

Hi Egidio,

Let’s continue with this discussion via email. I have already notified my colleagues who should be in touch with the Logical Glue team.
