Update to JUnit5 across all modules (#1668)
* Updated saga to JUnit 5 * Update fix for CI job in trampoline module * Updated update-method module to JUnit 5 * Upgraded to latest JUnit Jupiter JUnit 4 is not needed when using JUnit-Vintage * Reverted change to access modifier on Trampoline * Cleanup to resolve code smells * Formatting * Formatting * Migrating to JUnit5 and updating some Mockito patterns * Migrating to JUnit5 * Migrating to JUnit5 * Migrating to JUnit 5 * Formatting cleanup * Added missing scope for junit * Fixed tests that were not running previously. Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
This commit is contained in:
@ -30,17 +30,14 @@ import static org.mockito.Mockito.when;
|
||||
|
||||
import com.amazonaws.services.lambda.runtime.Context;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.runners.MockitoJUnitRunner;
|
||||
|
||||
/**
|
||||
* Unit tests for LambdaInfoApiHandler
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class LambdaInfoApiHandlerTest {
|
||||
class LambdaInfoApiHandlerTest {
|
||||
|
||||
@Test
|
||||
public void handleRequestWithMockContext() {
|
||||
void handleRequestWithMockContext() {
|
||||
var lambdaInfoApiHandler = new LambdaInfoApiHandler();
|
||||
var context = mock(Context.class);
|
||||
when(context.getAwsRequestId()).thenReturn("mock aws request id");
|
||||
|
Reference in New Issue
Block a user