[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] FullCalendar for Flow [jar] [INFO] FullCalendar Scheduler for Flow [jar] [INFO] Full Calendar web component demo [jar] [INFO] fullcalendar-parent [pom] [INFO] Full Calendar E2E Test App [jar] [INFO] [INFO] ------------------< org.vaadin.stefan:fullcalendar2 >------------------- [INFO] Building FullCalendar for Flow 7.1.2 [1/5] [INFO] from addon/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ fullcalendar2 --- [INFO] Deleting /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ fullcalendar2 --- [INFO] Copying 3 resources from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.14.1:compile (default-compile) @ fullcalendar2 --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 96 source files with javac [debug release 21] to target/classes [WARNING] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/main/java/org/vaadin/stefan/fullcalendar/dataprovider/EntryQuery.java:[29,20] @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final. [WARNING] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/main/java/org/vaadin/stefan/fullcalendar/FullCalendar.java:[174,12] deprecated item is not annotated with @Deprecated [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/main/java/org/vaadin/stefan/fullcalendar/FullCalendarBuilder.java: /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/main/java/org/vaadin/stefan/fullcalendar/FullCalendarBuilder.java uses or overrides a deprecated API. [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/main/java/org/vaadin/stefan/fullcalendar/FullCalendarBuilder.java: Recompile with -Xlint:deprecation for details. [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/main/java/org/vaadin/stefan/fullcalendar/FullCalendar.java: Some input files use unchecked or unsafe operations. [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/main/java/org/vaadin/stefan/fullcalendar/FullCalendar.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ fullcalendar2 --- [INFO] skip non existing resourceDirectory /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/test/resources [INFO] [INFO] --- compiler:3.14.1:testCompile (default-testCompile) @ fullcalendar2 --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 21 source files with javac [debug release 21] to target/test-classes [WARNING] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/test/java/org/vaadin/stefan/fullcalendar/FullCalendarTest.java:[164,60] non-varargs call of varargs method with inexact argument type for last parameter; cast to org.vaadin.stefan.fullcalendar.BusinessHours for a varargs call cast to org.vaadin.stefan.fullcalendar.BusinessHours[] for a non-varargs call and to suppress this warning [WARNING] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/test/java/org/vaadin/stefan/fullcalendar/FullCalendarTest.java:[414,49] non-varargs call of varargs method with inexact argument type for last parameter; cast to org.vaadin.stefan.fullcalendar.converters.JsonItemPropertyConverter for a varargs call cast to org.vaadin.stefan.fullcalendar.converters.JsonItemPropertyConverter[] for a non-varargs call and to suppress this warning [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/test/java/org/vaadin/stefan/fullcalendar/AdvancedOptionsTest.java: Some input files use or override a deprecated API. [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/test/java/org/vaadin/stefan/fullcalendar/AdvancedOptionsTest.java: Recompile with -Xlint:deprecation for details. [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/test/java/org/vaadin/stefan/fullcalendar/FullCalendarTest.java: Some input files use unchecked or unsafe operations. [INFO] /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/src/test/java/org/vaadin/stefan/fullcalendar/FullCalendarTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- surefire:3.5.4:test (default-test) @ fullcalendar2 --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.vaadin.stefan.fullcalendar.JsCallbackTest [INFO] Tests run: 26, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.677 s -- in org.vaadin.stefan.fullcalendar.JsCallbackTest [INFO] Running org.vaadin.stefan.fullcalendar.ConverterTest [INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 s -- in org.vaadin.stefan.fullcalendar.ConverterTest [INFO] Running org.vaadin.stefan.fullcalendar.DeltaTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 s -- in org.vaadin.stefan.fullcalendar.DeltaTest [INFO] Running org.vaadin.stefan.fullcalendar.JsonUtilsTest [INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.238 s -- in org.vaadin.stefan.fullcalendar.JsonUtilsTest [INFO] Running org.vaadin.stefan.fullcalendar.InMemoryEntryProviderTest [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.265 s -- in org.vaadin.stefan.fullcalendar.InMemoryEntryProviderTest [INFO] Running org.vaadin.stefan.fullcalendar.EntryTest [INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.122 s -- in org.vaadin.stefan.fullcalendar.EntryTest [INFO] Running org.vaadin.stefan.fullcalendar.RecurringTimeTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 s -- in org.vaadin.stefan.fullcalendar.RecurringTimeTest [INFO] Running org.vaadin.stefan.fullcalendar.EntryModelTest [INFO] Tests run: 57, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.147 s -- in org.vaadin.stefan.fullcalendar.EntryModelTest [INFO] Running org.vaadin.stefan.fullcalendar.FullCalendarBuilderTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in org.vaadin.stefan.fullcalendar.FullCalendarBuilderTest [INFO] Running org.vaadin.stefan.fullcalendar.EventSourcesTest [INFO] Tests run: 58, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 s -- in org.vaadin.stefan.fullcalendar.EventSourcesTest [INFO] Running org.vaadin.stefan.fullcalendar.TimezoneTests [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s -- in org.vaadin.stefan.fullcalendar.TimezoneTests [INFO] Running org.vaadin.stefan.fullcalendar.AdvancedOptionsTest [INFO] Tests run: 30, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 s -- in org.vaadin.stefan.fullcalendar.AdvancedOptionsTest [INFO] Running org.vaadin.stefan.fullcalendar.CalendarLocaleTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 s -- in org.vaadin.stefan.fullcalendar.CalendarLocaleTest [INFO] Running org.vaadin.stefan.fullcalendar.FullCalendarTest [INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.117 s -- in org.vaadin.stefan.fullcalendar.FullCalendarTest [INFO] Running org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended WARNING: A Java agent has been loaded dynamically (/home/ghrunner/.m2/repository/net/bytebuddy/byte-buddy-agent/1.12.22/byte-buddy-agent-1.12.22.jar) WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information WARNING: Dynamic loading of agents will be disallowed by default in a future release [ERROR] Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 2.389 s <<< FAILURE! -- in org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest [ERROR] org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest.getStartAsInstant -- Time elapsed: 1.509 s <<< ERROR! org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:153) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.Set.forEach(java.util.function.Consumer)" because the return value of "org.junit.jupiter.api.extension.ExtensionContext$Store.remove(Object, java.lang.Class)" is null at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:184) ... 2 more Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] 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) ... 3 more Caused by: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy This problem should never occur for javac-compiled classes. This problem has been observed for classes that are: - Compiled by older versions of scalac - Classes that are part of the Android distribution at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:285) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47) 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) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:396) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:355) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:334) at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:99) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:88) at org.mockito.Mockito.mock(Mockito.java:2037) at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:74) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25) at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44) at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72) at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73) at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47) at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81) at org.mockito.internal.framework.DefaultMockitoSession.(DefaultMockitoSession.java:43) at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83) ... 3 more Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 20 (64) - update Byte Buddy or set net.bytebuddy.experimental as a VM property at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4011) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4050) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3734) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:402) at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244) at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281) ... 27 more [ERROR] org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest.getEnd -- Time elapsed: 0.177 s <<< ERROR! org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:153) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.Set.forEach(java.util.function.Consumer)" because the return value of "org.junit.jupiter.api.extension.ExtensionContext$Store.remove(Object, java.lang.Class)" is null at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:184) ... 2 more Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] 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) ... 3 more Caused by: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy This problem should never occur for javac-compiled classes. This problem has been observed for classes that are: - Compiled by older versions of scalac - Classes that are part of the Android distribution at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:285) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47) 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) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:396) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:355) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:334) at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:99) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:88) at org.mockito.Mockito.mock(Mockito.java:2037) at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:74) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25) at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44) at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72) at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73) at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47) at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81) at org.mockito.internal.framework.DefaultMockitoSession.(DefaultMockitoSession.java:43) at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83) ... 3 more Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 20 (64) - update Byte Buddy or set net.bytebuddy.experimental as a VM property at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4011) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4050) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3734) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:402) at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244) at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281) ... 27 more [ERROR] org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest.getStartWithOffset -- Time elapsed: 0.122 s <<< ERROR! org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:153) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.Set.forEach(java.util.function.Consumer)" because the return value of "org.junit.jupiter.api.extension.ExtensionContext$Store.remove(Object, java.lang.Class)" is null at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:184) ... 2 more Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] 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) ... 3 more Caused by: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy This problem should never occur for javac-compiled classes. This problem has been observed for classes that are: - Compiled by older versions of scalac - Classes that are part of the Android distribution at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:285) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47) 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) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:396) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:355) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:334) at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:99) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:88) at org.mockito.Mockito.mock(Mockito.java:2037) at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:74) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25) at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44) at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72) at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73) at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47) at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81) at org.mockito.internal.framework.DefaultMockitoSession.(DefaultMockitoSession.java:43) at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83) ... 3 more Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 20 (64) - update Byte Buddy or set net.bytebuddy.experimental as a VM property at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4011) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4050) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3734) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:402) at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244) at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281) ... 27 more [ERROR] org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest.getEndAsInstant -- Time elapsed: 0.147 s <<< ERROR! org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:153) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.Set.forEach(java.util.function.Consumer)" because the return value of "org.junit.jupiter.api.extension.ExtensionContext$Store.remove(Object, java.lang.Class)" is null at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:184) ... 2 more Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] 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) ... 3 more Caused by: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy This problem should never occur for javac-compiled classes. This problem has been observed for classes that are: - Compiled by older versions of scalac - Classes that are part of the Android distribution at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:285) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47) 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) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:396) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:355) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:334) at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:99) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:88) at org.mockito.Mockito.mock(Mockito.java:2037) at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:74) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25) at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44) at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72) at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73) at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47) at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81) at org.mockito.internal.framework.DefaultMockitoSession.(DefaultMockitoSession.java:43) at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83) ... 3 more Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 20 (64) - update Byte Buddy or set net.bytebuddy.experimental as a VM property at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4011) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4050) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3734) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:402) at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244) at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281) ... 27 more [ERROR] org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest.getEndWithOffset -- Time elapsed: 0.151 s <<< ERROR! org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:153) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.Set.forEach(java.util.function.Consumer)" because the return value of "org.junit.jupiter.api.extension.ExtensionContext$Store.remove(Object, java.lang.Class)" is null at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:184) ... 2 more Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] 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) ... 3 more Caused by: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy This problem should never occur for javac-compiled classes. This problem has been observed for classes that are: - Compiled by older versions of scalac - Classes that are part of the Android distribution at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:285) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47) 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) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:396) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:355) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:334) at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:99) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:88) at org.mockito.Mockito.mock(Mockito.java:2037) at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:74) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25) at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44) at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72) at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73) at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47) at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81) at org.mockito.internal.framework.DefaultMockitoSession.(DefaultMockitoSession.java:43) at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83) ... 3 more Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 20 (64) - update Byte Buddy or set net.bytebuddy.experimental as a VM property at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4011) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4050) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3734) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:402) at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244) at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281) ... 27 more [ERROR] org.vaadin.stefan.fullcalendar.TimeslotsSelectedEventTest.getStart -- Time elapsed: 0.172 s <<< ERROR! org.mockito.exceptions.base.MockitoException: Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:153) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.Set.forEach(java.util.function.Consumer)" because the return value of "org.junit.jupiter.api.extension.ExtensionContext$Store.remove(Object, java.lang.Class)" is null at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:184) ... 2 more Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] 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) ... 3 more Caused by: java.lang.IllegalStateException: Byte Buddy could not instrument all classes within the mock's type hierarchy This problem should never occur for javac-compiled classes. This problem has been observed for classes that are: - Compiled by older versions of scalac - Classes that are part of the Android distribution at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:285) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47) 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) at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:396) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:355) at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:334) at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:99) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:88) at org.mockito.Mockito.mock(Mockito.java:2037) at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:74) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28) at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25) at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44) at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72) at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73) at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47) at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81) at org.mockito.internal.framework.DefaultMockitoSession.(DefaultMockitoSession.java:43) at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83) ... 3 more Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 20 (64) - update Byte Buddy or set net.bytebuddy.experimental as a VM property at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4011) at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4050) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3734) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:402) at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244) at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225) at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281) ... 27 more [INFO] Running org.vaadin.stefan.fullcalendar.FullCalendarOptionsTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 s -- in org.vaadin.stefan.fullcalendar.FullCalendarOptionsTest [INFO] Running org.vaadin.stefan.fullcalendar.InteractionCallbacksTest [INFO] Tests run: 27, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.308 s -- in org.vaadin.stefan.fullcalendar.InteractionCallbacksTest [INFO] Running org.vaadin.stefan.fullcalendar.AccessibilityTouchTest [INFO] Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.178 s -- in org.vaadin.stefan.fullcalendar.AccessibilityTouchTest [INFO] Running org.vaadin.stefan.fullcalendar.BusinessHoursTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s -- in org.vaadin.stefan.fullcalendar.BusinessHoursTest [INFO] Running org.vaadin.stefan.fullcalendar.DisplayOptionsTest [INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 s -- in org.vaadin.stefan.fullcalendar.DisplayOptionsTest [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] TimeslotsSelectedEventTest.getEnd » Mockito Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] [ERROR] TimeslotsSelectedEventTest.getEndAsInstant » Mockito Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] [ERROR] TimeslotsSelectedEventTest.getEndWithOffset » Mockito Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] [ERROR] TimeslotsSelectedEventTest.getStart » Mockito Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] [ERROR] TimeslotsSelectedEventTest.getStartAsInstant » Mockito Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] [ERROR] TimeslotsSelectedEventTest.getStartWithOffset » Mockito Mockito cannot mock this class: class org.vaadin.stefan.fullcalendar.FullCalendar. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Eclipse Adoptium JVM vendor version : 21+35-LTS JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-LTS JVM info : mixed mode, sharing OS name : Linux OS version : 6.8.0-106-generic 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 org.vaadin.stefan.fullcalendar.FullCalendar, interface com.vaadin.flow.component.HasStyle, interface com.vaadin.flow.component.HasElement, interface com.vaadin.flow.component.AttachNotifier, class com.vaadin.flow.component.Component, interface java.io.Serializable, interface com.vaadin.flow.component.HasSize, interface com.vaadin.flow.component.HasTheme, class java.lang.Object, interface com.vaadin.flow.component.DetachNotifier] [INFO] [ERROR] Tests run: 364, Failures: 0, Errors: 6, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] FullCalendar for Flow 7.1.2 ........................ FAILURE [ 18.142 s] [INFO] FullCalendar Scheduler for Flow 7.1.2 .............. SKIPPED [INFO] Full Calendar web component demo 25.0.0-SNAPSHOT ... SKIPPED [INFO] fullcalendar-parent 7.1.2 .......................... SKIPPED [INFO] Full Calendar E2E Test App 25.0.0-SNAPSHOT ......... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.760 s [INFO] Finished at: 2026-03-22T07:22:59Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.4:test (default-test) on project fullcalendar2: [ERROR] [ERROR] See /home/ghrunner/actions-runner/_work/vaadin-ecosystem-build/vaadin-ecosystem-build/work/vaadin-fullcalendar/addon/target/surefire-reports for the individual test results. [ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException