diff options
Diffstat (limited to 'asdctool/src/test/java/org/openecomp/sdc/asdctool/configuration/mocks/es/ElasticSearchMocksConfigurationTest.java')
-rw-r--r-- | asdctool/src/test/java/org/openecomp/sdc/asdctool/configuration/mocks/es/ElasticSearchMocksConfigurationTest.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/configuration/mocks/es/ElasticSearchMocksConfigurationTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/configuration/mocks/es/ElasticSearchMocksConfigurationTest.java new file mode 100644 index 0000000000..90af077e8c --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/configuration/mocks/es/ElasticSearchMocksConfigurationTest.java @@ -0,0 +1,43 @@ +package org.openecomp.sdc.asdctool.configuration.mocks.es; + +import org.junit.Test; +import org.openecomp.sdc.be.dao.api.ICatalogDAO; +import org.openecomp.sdc.be.dao.api.IEsHealthCheckDao; +import org.openecomp.sdc.be.dao.es.ElasticSearchClient; + +public class ElasticSearchMocksConfigurationTest { + + private ElasticSearchMocksConfiguration createTestSubject() { + return new ElasticSearchMocksConfiguration(); + } + + @Test + public void testElasticSearchClientMock() throws Exception { + ElasticSearchMocksConfiguration testSubject; + ElasticSearchClient result; + + // default test + testSubject = createTestSubject(); + result = testSubject.elasticSearchClientMock(); + } + + @Test + public void testEsCatalogDAOMock() throws Exception { + ElasticSearchMocksConfiguration testSubject; + ICatalogDAO result; + + // default test + testSubject = createTestSubject(); + result = testSubject.esCatalogDAOMock(); + } + + @Test + public void testEsHealthCheckDaoMock() throws Exception { + ElasticSearchMocksConfiguration testSubject; + IEsHealthCheckDao result; + + // default test + testSubject = createTestSubject(); + result = testSubject.esHealthCheckDaoMock(); + } +}
\ No newline at end of file |