public void verifyAgentCallbackInvokedWithCorrectArgumentsWhenTriggeringConfigCollectionForMaster() throws DlinkCollectionException {
svc.triggerConfigCollection(device);
verify(mockPnAuditService).log((secUser), (device.getUniqueId()), (AuditableService.CollectionConfiguration), (AuditableActionType.collectDeviceConfiguration),
anyString(),
anyString());
}
public void verifyAgentCallbackInvokedWithCorrectArgumentsWhenTriggeringConfigCollectionForMaster() throws DlinkCollectionException {
String ip = "192.3.3.5";
String port = "9999";
String masterUnitID = "1343";
TopologyObject device = mockDlinkMaster(ip, port, masterUnitID);
svc.triggerConfigCollection(device);
verify(mockPnAuditService).log(eq(secUser), eq(device.getUniqueId()), eq(AuditableService.CollectionConfiguration), eq(AuditableActionType.collectDeviceConfiguration),
anyString(),
anyString());
}
Does anyone know why this does not work? What do I need to change to make this work? I'd like to be able to check all arguments, except the last two which can be any string...