diff options
author | Michael Hwang <mhwang@research.att.com> | 2019-03-14 13:48:02 -0400 |
---|---|---|
committer | Michael Hwang <mhwang@research.att.com> | 2019-03-15 10:38:47 -0400 |
commit | 4545ce1221e81f15f73cbadaedd1ccfb3ba42c41 (patch) | |
tree | 9eb0535bd26404e36951ac8beb9510bcbb72a831 /src/test/java/org/onap/dcae/inventory/InventoryConfigurationTest.java | |
parent | 6c9475eec009e7816ae10e1df7d7a26d6465a1b6 (diff) |
Increase unit test coverage4.0.0-ONAPdublin
Change-Id: Id1067160082d117f2e48ad1476dfb0b3ba65134b
Issue-ID: DCAEGEN2-1263
Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'src/test/java/org/onap/dcae/inventory/InventoryConfigurationTest.java')
-rw-r--r-- | src/test/java/org/onap/dcae/inventory/InventoryConfigurationTest.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/java/org/onap/dcae/inventory/InventoryConfigurationTest.java b/src/test/java/org/onap/dcae/inventory/InventoryConfigurationTest.java index 1848a42..1935d8d 100644 --- a/src/test/java/org/onap/dcae/inventory/InventoryConfigurationTest.java +++ b/src/test/java/org/onap/dcae/inventory/InventoryConfigurationTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * dcae-inventory * ================================================================================ - * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018-2019 AT&T Intellectual Property. 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. @@ -21,6 +21,7 @@ package org.onap.dcae.inventory; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; import java.io.File; @@ -55,6 +56,12 @@ public class InventoryConfigurationTest { assertEquals(configuration.getDatabusControllerConnection().getHost(), "databus-controller-hostname"); assertEquals((long) configuration.getDatabusControllerConnection().getPort(), 8443); assertEquals(configuration.getDatabusControllerConnection().getRequired(), true); + assertEquals(configuration.getDatabusControllerConnection().getMechId(), "some-mech-id"); + assertEquals(configuration.getDatabusControllerConnection().getPassword(), "some-password"); + + configuration.setDefaultName("foo-config"); + assertEquals(configuration.getDefaultName(), "foo-config"); + assertNotNull(configuration.getJerseyClientConfiguration()); assertEquals(configuration.getDataSourceFactory().getUrl(), "jdbc:postgresql://127.0.0.1:5432/dcae_inv"); } catch (Exception e) { |