Skip to content

Unable to build  #192

@danny-holloway

Description

@danny-holloway

Getting the following issue when attempting to build main branch:

[ERROR] Tests run: 11, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 0.593 s <<< FAILURE! - in io.opentdf.platform.sdk.AutoconfigureTest
[ERROR] io.opentdf.platform.sdk.AutoconfigureTest.testStoreKeysToCache_NoKeys  Time elapsed: 0.406 s  <<< ERROR!
org.mockito.exceptions.base.MockitoException: 

Mockito cannot mock this class: class io.opentdf.platform.sdk.KASKeyCache.

If you're not sure why you're getting this error, please open an issue on GitHub.


Java               : 22
JVM vendor name    : Homebrew
JVM vendor version : 22.0.2
JVM name           : OpenJDK 64-Bit Server VM
JVM version        : 22.0.2
JVM info           : mixed mode, sharing
OS name            : Mac OS X
OS version         : 14.6.1


You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.

Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class io.opentdf.platform.sdk.KASKeyCache, class java.lang.Object]
	at io.opentdf.platform.sdk.AutoconfigureTest.testStoreKeysToCache_NoKeys(AutoconfigureTest.java:742)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class io.opentdf.platform.sdk.KASKeyCache, class java.lang.Object]
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
	at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:399)
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:190)
	at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:410)
	... 4 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions