diff options
author | 2021-05-07 12:38:57 +0200 | |
---|---|---|
committer | 2021-05-07 12:38:57 +0200 | |
commit | a6dcb0487d3efa67e73285623062d700c7ef9cfa (patch) | |
tree | 147b0d5bba9cc3e3c13e07dd6c4a74456823b167 /sdc-workflow-designer-be/src/test | |
parent | 303bb319e73431fb47a1a13169a8d95ee6f58ac0 (diff) |
Update vulnerable package dependencies
Update version to 1.9.0
Update vulnerable packages
Fix dependency conflicts
Issue-ID: SDC-3572
Signed-off-by: ChrisC <christophe.closset@intl.att.com>
Change-Id: I2dfac9340555ff41bb8b977bd28d0ed861c19125
Diffstat (limited to 'sdc-workflow-designer-be/src/test')
-rw-r--r-- | sdc-workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/swagger/UserIdReaderTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdc-workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/swagger/UserIdReaderTest.java b/sdc-workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/swagger/UserIdReaderTest.java index 6899e984..b82cb438 100644 --- a/sdc-workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/swagger/UserIdReaderTest.java +++ b/sdc-workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/swagger/UserIdReaderTest.java @@ -23,7 +23,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.fasterxml.classmate.TypeResolver; -import com.google.common.base.Optional; +import java.util.Optional; import java.lang.annotation.Annotation; import org.junit.Test; import org.junit.runner.RunWith; @@ -60,7 +60,7 @@ public class UserIdReaderTest { @Test public void shouldNotCallToParameterBuilderIfUserIdAnnotationNotFound() { when(parameterContext.resolvedMethodParameter()).thenReturn(resolvedMethodParameter); - when(resolvedMethodParameter.findAnnotation(UserId.class)).thenReturn(Optional.absent()); + when(resolvedMethodParameter.findAnnotation(UserId.class)).thenReturn(Optional.empty()); userIdReader.apply(parameterContext); verify(parameterContext, times(0)).parameterBuilder(); } @@ -70,7 +70,7 @@ public class UserIdReaderTest { doReturn(resolvedMethodParameter).when(parameterContext).resolvedMethodParameter(); doReturn(parameterBuilder).when(parameterContext).parameterBuilder(); - doReturn(parameterBuilder).when(parameterBuilder).parameterType(any()); + doReturn(parameterBuilder).when(parameterBuilder).parameterType((String)(any())); doReturn(parameterBuilder).when(parameterBuilder).name(any()); doReturn(parameterBuilder).when(parameterBuilder).type(any()); doReturn(Optional.of(USER_ID_ANNOTATION)).when(resolvedMethodParameter).findAnnotation(UserId.class); |