aboutsummaryrefslogtreecommitdiffstats
path: root/mso-catalog-db/src/test/java/org/onap/so/db/catalog/data/repository/CloudIdentityRepositoryTest.java
blob: 8fb65c2080db9d683f70076c07c94b5405e1ac23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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());
    }

}