aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-06-25 09:06:11 +0200
committerZebek Bogumil <bogumil.zebek@nokia.com>2020-07-02 08:40:33 +0200
commitdfc831bbb63ca3f42dc78135bfcca66b07cd5db2 (patch)
tree025d49791fad181265da02b4cc392879e9a48a02 /src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java
parente23d317a7c5ab6f0ce61054750c95748c1f26fef (diff)
Upgrade java from 8 to 113.5.0
Issue-ID: DCAEGEN2-2287 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: I1a80ac133798ec6fbd96696aaa292244b1feec05
Diffstat (limited to 'src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java')
-rw-r--r--src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java b/src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java
index 9599ca5..9c8d688 100644
--- a/src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java
+++ b/src/test/java/io/swagger/api/impl/DcaeServicesApiServiceImplTests.java
@@ -3,6 +3,7 @@ package io.swagger.api.impl;/*-
* dcae-inventory
* ================================================================================
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (c) 2020 Nokia. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,6 +44,7 @@ import org.onap.dcae.inventory.daos.InventoryDAOManager;
import org.onap.dcae.inventory.dbthings.models.DCAEServiceComponentObject;
import org.onap.dcae.inventory.dbthings.models.DCAEServiceObject;
import org.powermock.api.mockito.PowerMockito;
+import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import org.slf4j.Logger;
@@ -57,6 +59,7 @@ import io.swagger.model.DCAEServiceRequest;
* Created by mhwang on 9/25/17.
*/
@PrepareForTest({InventoryDAOManager.class})
+@PowerMockIgnore("jdk.internal.reflect.*")
@RunWith(PowerMockRunner.class)
public class DcaeServicesApiServiceImplTests {
@@ -88,7 +91,7 @@ public class DcaeServicesApiServiceImplTests {
// This block is a trick to make a private method accessible for testing
try {
- createDCAEService = DcaeServicesApiServiceImpl.class.getDeclaredMethod("createDCAEService",
+ createDCAEService = DcaeServicesApiServiceImpl.class.getDeclaredMethod("createDCAEService",
DCAEServiceObject.class, Collection.class, UriInfo.class);
createDCAEService.setAccessible(true);
} catch (NoSuchMethodException e) {
@@ -137,7 +140,7 @@ public class DcaeServicesApiServiceImplTests {
}
/*
- Commented this unit test because could not get past Nullpointer in the line trying to mock the explicit "bind"
+ Commented this unit test because could not get past Nullpointer in the line trying to mock the explicit "bind"
function call. Mockito does not handle mocking overloaded functions well so it goes into the actual method where
an member variable called foreman is null.
@Test