rsatrio / Keycloak-Federation-ExistingDB

Keycloak Custom Module for User Federation with Existing DB
MIT License
43 stars 8 forks source link

Cannot compile with 23.0.7 version #5

Open yanngallis opened 4 months ago

yanngallis commented 4 months ago

Hi,

I've just tried to compile the package for the 23.0.7 keycloak version. But i have this error.

Could you help me ?

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.rizky.keycloak.federationdb.test.FederationDBTest
15:18:52,588 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
15:18:52,589 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
15:18:52,589 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/opt/Keycloak-Federation-ExistingDB/target/test-classes/logback.xml]
15:18:52,700 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
15:18:52,701 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
15:18:52,708 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
15:18:52,807 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
15:18:52,807 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
15:18:52,807 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
15:18:52,808 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
15:18:52,808 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
15:18:52,808 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
15:18:52,809 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@45b9a632 - Registering current configuration as safe fallback point

Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.229 s <<< FAILURE! -- in com.rizky.keycloak.federationdb.test.FederationDBTest
[ERROR] com.rizky.keycloak.federationdb.test.FederationDBTest -- Time elapsed: 1.212 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:

Mockito cannot mock this class: interface org.keycloak.models.KeycloakSession.

If you're not sure why you're getting this error, please report to the mailing list.

Java               : 17
JVM vendor name    : Oracle Corporation
JVM vendor version : 17.0.10+11-LTS-240
JVM name           : Java HotSpot(TM) 64-Bit Server VM
JVM version        : 17.0.10+11-LTS-240
JVM info           : mixed mode, sharing
OS name            : Linux
OS version         : 4.19.0-26-cloud-amd64