package io.delphiplatform.api.v3.rdb.service.ads import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test internal class AdsMetricsQueryMappingInfoProviderTest { private val infoProvider = AdsMetricsQueryMappingInfoProvider() @Test fun testGetSubQueryExpressionForMetric_hasAllMetrics() { AdsMetricEnum.values().forEach { m -> Assertions.assertNotNull(infoProvider.getSubQueryExpressionForMetric(m), "Missing config for $m") } } @Test fun testGetRootQueryExpressionForMetric_hasAllMetrics() { AdsMetricEnum.values().forEach { m -> Assertions.assertNotNull(infoProvider.getRootQueryExpressionForMetric(m), "Missing config for $m") } } @Test fun testGetResponseMapper_hasAllMetrics() { AdsMetricEnum.values().forEach { m -> Assertions.assertNotNull(infoProvider.getResponseMapper(m), "Missing config for $m") } } }