aboutsummaryrefslogtreecommitdiffstats
path: root/models-pdp/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'models-pdp/src/test')
-rw-r--r--models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/provider/PdpStatisticsProviderTest.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/provider/PdpStatisticsProviderTest.java b/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/provider/PdpStatisticsProviderTest.java
index 91eb54e8b..6f6d43515 100644
--- a/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/provider/PdpStatisticsProviderTest.java
+++ b/models-pdp/src/test/java/org/onap/policy/models/pdp/persistence/provider/PdpStatisticsProviderTest.java
@@ -52,7 +52,6 @@ public class PdpStatisticsProviderTest {
private static final Instant TIMESTAMP2 = Instant.ofEpochSecond(1078884350);
private static final Long GENERATEDID1 = 1L;
private static final Long GENERATEDID2 = 2L;
- private static final String ORDER = "DESC";
private PfDao pfDao;
@@ -181,36 +180,6 @@ public class PdpStatisticsProviderTest {
}
@Test
- public void testGetFilteredPdpStatisticsOld() throws Exception {
- assertThatThrownBy(() -> {
- new PdpStatisticsProvider().getFilteredPdpStatistics(null, NAME, GROUP, SUBGROUP, TIMESTAMP1, TIMESTAMP2,
- ORDER, 1);
- }).hasMessageMatching(DAO_IS_NULL);
-
- assertThatThrownBy(() -> {
- new PdpStatisticsProvider().getFilteredPdpStatistics(pfDao, NAME, null, null, TIMESTAMP1, TIMESTAMP2, ORDER,
- 1);
- }).hasMessageMatching("pdpGroupName is marked .*ull but is null");
-
-
- List<PdpStatistics> createdPdpStatisticsList;
- createdPdpStatisticsList = new PdpStatisticsProvider().createPdpStatistics(pfDao, pdpStatisticsTestList);
- createdListStr = createdPdpStatisticsList.toString();
- assertEquals(createdListStr.replaceAll("\\s+", ""), testListStr.replaceAll("\\s+", ""));
-
- List<PdpStatistics> getPdpStatisticsList;
- getPdpStatisticsList = new PdpStatisticsProvider().getFilteredPdpStatistics(pfDao, NAME, GROUP, null,
- TIMESTAMP1, TIMESTAMP2, ORDER, 0);
- assertThat(getPdpStatisticsList).hasSize(1);
- getPdpStatisticsList = new PdpStatisticsProvider().getFilteredPdpStatistics(pfDao, "name2", GROUP, null,
- TIMESTAMP1, TIMESTAMP2, ORDER, 0);
- assertThat(getPdpStatisticsList).hasSize(1);
- getPdpStatisticsList = new PdpStatisticsProvider().getFilteredPdpStatistics(pfDao, "name2", GROUP, SUBGROUP,
- TIMESTAMP1, TIMESTAMP2, ORDER, 0);
- assertThat(getPdpStatisticsList).hasSize(1);
- }
-
- @Test
public void testGetFilteredPdpStatistics() throws Exception {
assertThatThrownBy(() -> {