-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: sophiaxu0424 <[email protected]>
- Loading branch information
1 parent
ab2044f
commit 0e72efa
Showing
15 changed files
with
77 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Mockito Tests | ||
There are two OpenJ9 user issues where a crash with Mockito is reported: | ||
|
||
- Crash with Java 21 0.42 | ||
|
||
- Segmentation error when using Mockito and Byte-buddy-agent with Java 21 | ||
|
||
# This Mockito test cases will help identify the above crashes in our builds. | ||
Test case 1: main.java.test.MainTest.java | ||
Test case 2: main.java.test.SegmentationErrorDemo | ||
Dependencies: | ||
- Mockito | ||
- Bytebuddy | ||
- Maven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-451 Bytes
functional/MockitoTests/reproApp/target/test-classes/org/example/MainTest$Some.class
Binary file not shown.
Binary file removed
BIN
-603 Bytes
functional/MockitoTests/reproApp/target/test-classes/org/example/MainTest.class
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-523 Bytes
functional/MockitoTests/segmentationerror/target/classes/SegmentationErrorDemo.class
Binary file not shown.
8 changes: 2 additions & 6 deletions
8
...p/src/test/java/org/example/MainTest.java → ...itoTests/src/main/java/test/MainTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
package org.example; | ||
|
||
package main.java.test; | ||
import org.junit.jupiter.api.Test; | ||
import org.mockito.Mockito; | ||
|
||
class MainTest { | ||
|
||
public class MainTest { | ||
class Some {} | ||
|
||
@Test | ||
public void reproduceCrash() { | ||
Mockito.mock(Some.class); | ||
} | ||
|
||
} |
Oops, something went wrong.