# Camunda coverage Spring Boot 3 junit 5

**URL:** <https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160>\
**Category:** Discussion & Questions\
**Created:** [June 17, 2024, 12:08pm UTC](https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160 "2024-06-17T12:08:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jschuh](https://forum.camunda.io/letter_avatar_proxy/v4/letter/j/e5b9ba/32.png) [@jschuh](https://forum.camunda.io/u/jschuh)\
**Post date:** [June 17, 2024, 12:08pm UTC](https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160/1 "2024-06-17T12:08:35Z")

</div>

Hi,

We are using in our application the following versions with maven:

```auto
<dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-bom</artifactId>
        <version>7.18.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
<dependency>
            <groupId>org.camunda.bpm.extension</groupId>
            <artifactId>camunda-bpm-process-test-coverage-spring-test</artifactId>
            <version>1.0.3</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.camunda.bpm.extension</groupId>
            <artifactId>camunda-bpm-process-test-coverage-junit5</artifactId>
            <version>1.0.3</version>
            <scope>test</scope>
        </dependency>

  <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>3.2.0</version>
    </parent>

```

We try to initialize the camunda process engine with junit 5 like this:

```auto
@RegisterExtension
    ProcessEngineExtension extension = ProcessEngineCoverageExtension
            .builder("camunda-unit-test.cfg.xml").build();

```

With Spring Boot 2 we have no issues.  
But with Spring Boot 3 we are getting the exception:

```auto
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'jdbcUrl' of bean class [org.camunda.bpm.extension.process_test_coverage.engine.ProcessCoverageInMemProcessEngineConfiguration]: Bean property 'jdbcUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
	at org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:206)
	at org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:430)
	at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278)
	at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:266)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:79)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1719)
	... 22 more

```

Is there are workaround for this issue? Or does anybody know a solution for this?

best regards

---

<div class="post-metadata">

**Author:** ![Alex\_Voloshyn](https://forum.camunda.io/user_avatar/forum.camunda.io/alex_voloshyn/32/14765_2.png) [@Alex\_Voloshyn](https://forum.camunda.io/u/Alex_Voloshyn)\
**Post date:** [June 17, 2024, 1:33pm UTC](https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160/2 "2024-06-17T13:33:29Z")

</div>

Hi @jschuh  
Not sure if you noticed, but just for your information, I do not see Spring Boot 3.x listed among the supported versions for Camunda 7.18 or even 7.19. The closest supported version is 7.20.x, so a possible workaround is to upgrade Camunda to 7.20 if you need to stick with Spring Boot 3.x for some reason.

Regards,  
Alex

---

<div class="post-metadata">

**Author:** ![jschuh](https://forum.camunda.io/letter_avatar_proxy/v4/letter/j/e5b9ba/32.png) [@jschuh](https://forum.camunda.io/u/jschuh)\
**Post date:** [June 18, 2024, 6:00am UTC](https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160/3 "2024-06-18T06:00:30Z")

</div>

Hi,

Thanks for the information. I updated our camunda-bom to 7.21.0.

But unfortunately the error from the first post still appears.

best regards

---

<div class="post-metadata">

**Author:** ![Alex\_Voloshyn](https://forum.camunda.io/user_avatar/forum.camunda.io/alex_voloshyn/32/14765_2.png) [@Alex\_Voloshyn](https://forum.camunda.io/u/Alex_Voloshyn)\
**Post date:** [June 18, 2024, 7:58am UTC](https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160/4 "2024-06-18T07:58:22Z")

</div>

Could you share what your database connection configuration looks like?

---

<div class="post-metadata">

**Author:** ![jschuh](https://forum.camunda.io/letter_avatar_proxy/v4/letter/j/e5b9ba/32.png) [@jschuh](https://forum.camunda.io/u/jschuh)\
**Post date:** [June 18, 2024, 9:12am UTC](https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160/5 "2024-06-18T09:12:44Z")

</div>

```auto
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

  <bean id="processEngineConfiguration" class="org.camunda.bpm.extension.process_test_coverage.engine.ProcessCoverageInMemProcessEngineConfiguration">

    <property name="jdbcUrl" value="jdbc:h2:mem:camunda;DB_CLOSE_DELAY=1000" />
    <property name="jdbcDriver" value="org.h2.Driver" />
    <property name="jdbcUsername" value="sa" />
    <property name="jdbcPassword" value="" />
    <property name="databaseSchemaUpdate" value="true" />
	<property name="jobExecutorActivate" value="false" />

	<property name="expressionManager">
		<bean class="org.camunda.bpm.engine.test.mock.MockExpressionManager" />
	</property>
	<property name="processEnginePlugins">
		<list>
			<bean class="org.camunda.spin.plugin.impl.SpinProcessEnginePlugin" />
		</list>
	</property>
    
  </bean>

</beans>

```

This is our config file

---

<div class="post-metadata">

**Author:** ![jschuh](https://forum.camunda.io/letter_avatar_proxy/v4/letter/j/e5b9ba/32.png) [@jschuh](https://forum.camunda.io/u/jschuh)\
**Post date:** [June 18, 2024, 10:58am UTC](https://forum.camunda.io/t/camunda-coverage-spring-boot-3-junit-5/53160/6 "2024-06-18T10:58:16Z")

</div>

I found the solution.

i changed the class from this

```auto
org.camunda.bpm.extension.process_test_coverage.engine.ProcessCoverageInMemProcessEngineConfiguration

```

to this

```auto
org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration

```

and now its working
