At first I thought this is the source of error:

"Mockito is currently self-attaching to enable the inline-mock-maker. This
> will no longer work in future releases of the JDK. Please add Mockito as an
> agent to your build as described in Mockito's documentation:
> https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3
> Incorrect number of arguments: 2"


so referring to this documentation
https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3


The same can be achieved using *Groovy DSL*:


 configurations {
     mockitoAgent
 }
 dependencies {
     testImplementation(libs.mockito)
     mockitoAgent(libs.mockito) {
         transitive = false
     }
 }
 tasks {
     test {
         jvmArgs += "-javaagent:${configurations.mockitoAgent.asPath}"
     }
 }

I added this to the build.gradle, but the error still persists.

I am now trying to using this command "./gradlew
:fineract-provider:cucumber --debug" explore the source of error,

Sept 18, 2025 8:24:51 AM io.cucumber.core.runtime.Runtime runFeatures
SEVERE: Exception while executing pickle
java.util.concurrent.ExecutionException: java.lang.IllegalStateException:
Failed to load ApplicationContext for
[WebMergedContextConfiguration@219de215 testClass =
org.apache.fineract.TestSuite, locations = [], classes = [
org.apache.fineract.TestConfiguration], contextInitializerClasses = [],
activeProfiles = [], propertySourceDescriptors =
[PropertySourceDescriptor[locations=[classpath:application-test.properties],
ignoreResourceNotFound=false, name=null, propertySourceFactory=null,
encoding=null]], propertySourceProperties = [], contextCustomizers = [
org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory
$OnFailureConditionReportContextCustomizer@5d28ac23,
org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory
$DisableObservabilityContextCustomizer@1f,
org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer
@0,
org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@6e681c3b,
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@
c4fac3a,
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory
$DuplicateJsonObjectContextCustomizer@5ae3f536,
org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0,
org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory
$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@2d44025b,
org.springframework.test.context.web.socket.MockServerContainerContextCustomizer@4ab8c3c0,
org.springframework.test.context.support.DynamicPropertiesContextCustomizer@
0], resourceBasePath = "src/main/webapp", contextLoader =
org.springframework.test.context.web.WebDelegatingSmartContextLoader,
parent = null]


*"Maybe try the extra clean-up procedures?"*


I restarted the computer, also cleaned the cache of the IDE to see whether
this error comes from the IDE or from the application itself, I also
checked whether it comes from the network (It is downloading all the
necessary dependencies)? For now it seems that it comes from the
application, or some configuration?



On Thu, Sep 18, 2025 at 11:06 PM Adam Monsen <[email protected]> wrote:

> I can't repro.
>
> Have you tried anything else? The errors look similar to last time.
>
> Maybe try the extra clean-up procedures?
>

Reply via email to