diff options
Diffstat (limited to 'mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/CloudIdentityRepositoryTest.java')
-rw-r--r-- | mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/CloudIdentityRepositoryTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/CloudIdentityRepositoryTest.java b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/CloudIdentityRepositoryTest.java new file mode 100644 index 0000000000..8fb65c2080 --- /dev/null +++ b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/CloudIdentityRepositoryTest.java @@ -0,0 +1,21 @@ +package org.onap.so.db.catalog.data.repository; + +import org.junit.Assert; +import org.junit.Test; +import org.onap.so.BaseTest; +import org.onap.so.db.catalog.beans.CloudIdentity; +import org.springframework.beans.factory.annotation.Autowired; + +public class CloudIdentityRepositoryTest extends BaseTest { + + @Autowired + private CloudIdentityRepository cloudIdentityRepository; + + @Test + public void findOneTest() throws Exception { + CloudIdentity cloudIdentity = cloudIdentityRepository.findOne("mtn13"); + Assert.assertNotNull(cloudIdentity); + Assert.assertEquals("mtn13",cloudIdentity.getId()); + } + +}
\ No newline at end of file |