Skip to main content

I have a customer assertion class which is located under src/test/java or /src/test/munit either 

 

If I run the munit, I get  

 

java.lang.ClassNotFoundException: com.example.CustomAssertion

 

the definition of the customer assertion is taken from the documentation 

 

https://docs.mulesoft.com/munit/2.1/run-custom-event-processor

 

the munit test file

 <munit:validation >

<munit-tools:assert-that doc:name="Assert the return of MessageID " doc:id="61e7edf9-fa90-4228-8794-5ff31c20cc6c" expression="#payload" is="#MunitTools::notNullValue()" message="MessageID should not be null or empty"/>

 

<!-- customer assertion -->

<munit-tools:run-custom assertion="com.example.CustomAssertion" expression="#payload" />

</munit:validation>

 

The documentation does not state any additional details.

Any idea why this class is not found even it is on the test class path

2 respostas
  1. 27 de ago. de 2019, 09:28

    Not working. I am getting another error. The file mule-artifact.json should not be related to test classes but rather the run time application classes. The documentation lack some clarity.

    Thanks for taking the effort to answer my question

0/9000