diff options
author | 2019-09-01 16:24:41 +0300 | |
---|---|---|
committer | 2019-09-01 16:59:37 +0300 | |
commit | 03f54a0b7de599e0a012ff6d35d0e74e20ca36c2 (patch) | |
tree | 3e70969a2142fc7fe5153cab3adcc451e22b0a9f /vid-app-common/src/test/java/org/onap/vid/services | |
parent | e6c30425575cd76a3955b03ab389150ed74fbb1d (diff) |
add getNewestModelVersionByInvariant to controller and service
Also add testGetActiveNetworkList UT
Issue-ID: VID-378
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I97c2ae029272aba915d5f9699bccff0eb9d49329
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/services')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/services/AaiServiceImplTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/services/AaiServiceImplTest.java b/vid-app-common/src/test/java/org/onap/vid/services/AaiServiceImplTest.java index 20409d327..2eae1864f 100644 --- a/vid-app-common/src/test/java/org/onap/vid/services/AaiServiceImplTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/services/AaiServiceImplTest.java @@ -791,4 +791,12 @@ public class AaiServiceImplTest { subscriber.subscriberType = "type-1"; return subscriber; } + + @Test + public void whenGetNewestModelVersionByInvariantId_thenReturnSameValueAsAaiClient() { + String modelInvariantId = "123"; + ModelVer modelVer = mock(ModelVer.class); + when(aaiClient.getLatestVersionByInvariantId(eq(modelInvariantId))).thenReturn(modelVer); + assertThat(aaiService.getNewestModelVersionByInvariantId(modelInvariantId)).isEqualTo(modelVer); + } } |