# How can I write tests against my custom code?

**URL:** <https://forums.broadleafcommerce.com/t/how-can-i-write-tests-against-my-custom-code/22>\
**Category:** Shared Concepts\
**Created:** [November 26, 2024, 6:04pm UTC](https://forums.broadleafcommerce.com/t/how-can-i-write-tests-against-my-custom-code/22 "2024-11-26T18:04:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![broadleaf-moderator](https://yyz1.discourse-cdn.com/flex011/user_avatar/forums.broadleafcommerce.com/broadleaf-moderator/32/7_2.png) [@broadleaf-moderator](https://forums.broadleafcommerce.com/u/broadleaf-moderator)\
**Post date:** [November 26, 2024, 6:04pm UTC](https://forums.broadleafcommerce.com/t/how-can-i-write-tests-against-my-custom-code/22/1 "2024-11-26T18:04:05Z")

</div>

Broadleaf provides its own internal tests via java jars: [Broadleaf Dev Central](https://developer.broadleafcommerce.com/shared-concepts/testing/java-backend-testing#accessing_broadleaf_test_sources). Here you can find many examples of tests to use as starting points.

Broadleaf also has a public Github repo that has examples of extensibility API tests. These are true REST tests, but are expensive to run. Mixing these with integration tests and unit tests is advisable: [GitHub - BroadleafCommerce/MicroservicesConcepts: Various extension and dev use cases. Proving ground for concepts.](https://github.com/BroadleafCommerce/MicroservicesConcepts).
