/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2021 Nordix Foundation.
+ * Modifications Copyright (C) 2022 Bell Canada. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Before
public void setUp() throws Exception {
super.setUp();
- auditManager = new PolicyAuditManager(dao);
+ auditManager = new PolicyAuditManager(policyAuditService);
}
@AfterClass
assertThat(auditManager.getAuditRecords()).hasSize(1);
- doThrow(PfModelRuntimeException.class).when(dao).createAuditRecords(any());
+ doThrow(PfModelRuntimeException.class).when(policyAuditService).createAuditRecords(any());
auditManager.saveRecordsToDb();
assertThat(auditManager.getAuditRecords()).isNotEmpty();