Skip to content

Commit dbffa70

Browse files
committed
test: add coverage for utils
1 parent 4eb70d7 commit dbffa70

File tree

2 files changed

+2
-6
lines changed
  • aws-lambda-java-runtime-interface-client

2 files changed

+2
-6
lines changed

aws-lambda-java-runtime-interface-client/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<dependency>
9191
<groupId>org.mockito</groupId>
9292
<artifactId>mockito-junit-jupiter</artifactId>
93-
<version>5.10.0</version>
93+
<version>4.11.0</version>
9494
<scope>test</scope>
9595
</dependency>
9696
<dependency>

aws-lambda-java-runtime-interface-client/src/test/java/com/amazonaws/services/lambda/runtime/api/client/util/UnsafeUtilTest.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package com.amazonaws.services.lambda.runtime.api.client.util;
77

88
import org.junit.jupiter.api.Test;
9+
import java.lang.reflect.Field;
910
import static org.junit.jupiter.api.Assertions.*;
1011

1112
public class UnsafeUtilTest {
@@ -15,11 +16,6 @@ void testTheUnsafeIsInitialized() {
1516
assertNotNull(UnsafeUtil.TheUnsafe);
1617
}
1718

18-
@Test
19-
void testDisableIllegalAccessWarning() {
20-
assertDoesNotThrow(() -> UnsafeUtil.disableIllegalAccessWarning());
21-
}
22-
2319
@Test
2420
void testThrowException() {
2521
Exception testException = new Exception("Test exception");

0 commit comments

Comments
 (0)