diff options
author | Sneha Dantkale <Sneha.dantkale@amdocs.com> | 2020-02-14 19:15:02 +0530 |
---|---|---|
committer | Forsyth, James (jf2512) <jf2512@att.com> | 2020-02-14 17:05:45 -0500 |
commit | 48960e6033145667366bbcd2f8ad1ae44c2fd260 (patch) | |
tree | e75e7d852ee672412422c4fae2689c804174796b /aai-core/src/test | |
parent | 54290b7443eb6f15c271031a6eef2f3e51c2f261 (diff) |
[AAI-2528] | Update to spring-boot 2.1.6.RELEASE
Issue-ID: AAI-2528
Change-Id: I87756450c12538af3f21e4affa24ef76724d232c
Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com>
Change-Id: I9437899ba1c7f2aec816a8076c954b080f9512fb
Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com>
Change-Id: If3ad26f98c815e4872320b2652cf6c2e0b675de0
Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com>
Diffstat (limited to 'aai-core/src/test')
-rw-r--r-- | aai-core/src/test/java/org/onap/aai/serialization/queryformats/QueryFormatTestHelper.java | 2 | ||||
-rw-r--r-- | aai-core/src/test/java/org/onap/aai/util/FileWatcherTest.java | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/aai-core/src/test/java/org/onap/aai/serialization/queryformats/QueryFormatTestHelper.java b/aai-core/src/test/java/org/onap/aai/serialization/queryformats/QueryFormatTestHelper.java index f05e36dd..03990b1d 100644 --- a/aai-core/src/test/java/org/onap/aai/serialization/queryformats/QueryFormatTestHelper.java +++ b/aai-core/src/test/java/org/onap/aai/serialization/queryformats/QueryFormatTestHelper.java @@ -46,7 +46,7 @@ public class QueryFormatTestHelper { public static void mockPathed(UrlBuilder mock) throws AAIFormatVertexException { Answer<String> answer = new Answer<String>() { public String answer(InvocationOnMock invocation) throws Throwable { - Vertex v = invocation.getArgumentAt(0, Vertex.class); + Vertex v = invocation.getArgument(0); return v.<String>property(AAIProperties.AAI_URI).orElse("urimissing"); } diff --git a/aai-core/src/test/java/org/onap/aai/util/FileWatcherTest.java b/aai-core/src/test/java/org/onap/aai/util/FileWatcherTest.java index f4838304..2e870f6e 100644 --- a/aai-core/src/test/java/org/onap/aai/util/FileWatcherTest.java +++ b/aai-core/src/test/java/org/onap/aai/util/FileWatcherTest.java @@ -70,8 +70,10 @@ public class FileWatcherTest { public void testOnChange() throws Exception { FileWatcher fileWatcher = Mockito.mock(FileWatcher.class, Mockito.CALLS_REAL_METHODS); - fileWatcher.onChange(Mockito.any(File.class)); + File file=Mockito.mock(File.class); + fileWatcher.onChange(file); + + Mockito.verify(fileWatcher).onChange(file); - Mockito.verify(fileWatcher).onChange(Mockito.any(File.class)); } } |