Cloud config database table support
[so.git] / mso-catalog-db / src / test / java / org / onap / so / db / catalog / data / repository / CloudIdentityRepositoryTest.java
1 package org.onap.so.db.catalog.data.repository;
2
3 import org.junit.Assert;
4 import org.junit.Test;
5 import org.onap.so.BaseTest;
6 import org.onap.so.db.catalog.beans.CloudIdentity;
7 import org.springframework.beans.factory.annotation.Autowired;
8
9 public class CloudIdentityRepositoryTest extends BaseTest {
10     
11     @Autowired
12     private CloudIdentityRepository cloudIdentityRepository;
13     
14     @Test
15     public void findOneTest() throws Exception {
16         CloudIdentity cloudIdentity = cloudIdentityRepository.findOne("mtn13");
17         Assert.assertNotNull(cloudIdentity);
18         Assert.assertEquals("mtn13",cloudIdentity.getId());
19     }
20
21 }