hansva commented on PR #4673:
URL: https://github.com/apache/hop/pull/4673#issuecomment-2531624613

   it seems test no longer work on macOs with this version
   
   ```
   [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
1.174 s <<< FAILURE! -- in org.apache.hop.ui.core.dialog.PreviewRowsDialogTest
   [ERROR] org.apache.hop.ui.core.dialog.PreviewRowsDialogTest.getDataForRow -- 
Time elapsed: 0.178 s <<< ERROR!
   org.mockito.exceptions.base.MockitoException:
   
   Mockito cannot mock this class: class org.eclipse.swt.widgets.Shell.
   
   If you're not sure why you're getting this error, please open an issue on 
GitHub.
   
   
   Java               : 17
   JVM vendor name    : Azul Systems, Inc.
   JVM vendor version : 17.0.11+9-LTS
   JVM name           : OpenJDK 64-Bit Server VM
   JVM version        : 17.0.11+9-LTS
   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 : java.lang.IllegalArgumentException: Could not create 
type
        at 
org.apache.hop.ui.core.dialog.PreviewRowsDialogTest.getDataForRow(PreviewRowsDialogTest.java:53)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   Caused by: java.lang.IllegalArgumentException: Could not create type
        at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:170)
        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:75)
        at 
org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:414)
        at 
org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:373)
        at 
org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:352)
        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:84)
        at org.mockito.Mockito.mock(Mockito.java:2104)
        at org.mockito.Mockito.mock(Mockito.java:2019)
        ... 2 more
   Caused by: java.lang.InternalError: class redefinition failed: invalid class
        at 
java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native 
Method)
        at 
java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:169)
        at 
org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281)
        at 
org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218)
        at 
org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:78)
        at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
        ... 14 more
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to