Add java21-to-25 module: compile-once probes on JDK 21 and 25, removed APIs, build matrix, pinning, compact headers and containers
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package demo;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
class GreeterTest {
|
||||
@Test
|
||||
void stubsAConcreteClass() {
|
||||
Greeter greeter = mock(Greeter.class);
|
||||
when(greeter.greet()).thenReturn("mock says hi");
|
||||
assertEquals("mock says hi", greeter.greet());
|
||||
System.out.println("PROBE ok: " + greeter.greet());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user