diff options
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java b/main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java index 4cc69176..65b1234f 100644 --- a/main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java +++ b/main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java @@ -59,12 +59,6 @@ public class ProviderSuper { @Mock protected PolicyModelsProvider dao; - /** - * Used to capture input to dao.createPdpGroups(). - */ - @Captor - private ArgumentCaptor<List<PdpGroup>> createCaptor; - /** * Used to capture input to dao.updatePdpGroups(). @@ -108,11 +102,10 @@ public class ProviderSuper { Registry.register(PapConstants.REG_PAP_DAO_FACTORY, daofact); } - protected void assertGroup(List<PdpGroup> groups, String name, String version) { + protected void assertGroup(List<PdpGroup> groups, String name) { PdpGroup group = groups.remove(0); assertEquals(name, group.getName()); - assertEquals(version, group.getVersion()); } protected void assertUpdateIgnorePolicy(List<PdpUpdate> updates, String groupName, String pdpType, String pdpName) { @@ -127,18 +120,6 @@ public class ProviderSuper { /** * Gets the input to the method. * - * @return the input that was passed to the dao.createPdpGroups() method - * @throws Exception if an error occurred - */ - protected List<PdpGroup> getGroupCreates() throws Exception { - verify(dao).createPdpGroups(createCaptor.capture()); - - return copyList(createCaptor.getValue()); - } - - /** - * Gets the input to the method. - * * @return the input that was passed to the dao.updatePdpGroups() method * @throws Exception if an error occurred */ |