# Running document creation junit test

**URL:** <https://community.bloomreach.com/t/running-document-creation-junit-test/2489>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [March 25, 2021, 3:34pm UTC](https://community.bloomreach.com/t/running-document-creation-junit-test/2489 "2021-03-25T15:34:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asanchez](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@asanchez](https://community.bloomreach.com/u/asanchez)\
**Post date:** [March 25, 2021, 3:34pm UTC](https://community.bloomreach.com/t/running-document-creation-junit-test/2489/1 "2021-03-25T15:34:44Z")

</div>

Hello,

we need to create junits to test product features that requires access to the repository, for example to create a new document instance based in a json.

I did setup a test using jupiter and seems to try to run before the cargo tries to start.

What should I do to be able to run this kind of test?

Thanks in advance,  
Regards

---

<div class="post-metadata">

**Author:** ![asanchez](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@asanchez](https://community.bloomreach.com/u/asanchez)\
**Post date:** [March 29, 2021, 11:18am UTC](https://community.bloomreach.com/t/running-document-creation-junit-test/2489/2 "2021-03-29T11:18:45Z")

</div>

hi, could you help us with this requirement?,

Thanks

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [March 30, 2021, 2:45pm UTC](https://community.bloomreach.com/t/running-document-creation-junit-test/2489/3 "2021-03-30T14:45:03Z")

</div>

Perhaps you can use:

> **[bloomreach-forge/brut](https://github.com/bloomreach-forge/brut)**
>
> Unit test the delivery tier with the Bloomreach Unit Testing library

Otherwise you can create a class that extends RepositoryTestCase. Unfortunately this can be quite difficult to use and you have to rely on what you see in existing code to get it to work. I highly reccommend brut.
