Upgrade and clean up dependencies 81/133081/1
authorliamfallon <liam.fallon@est.tech>
Tue, 31 Jan 2023 10:42:20 +0000 (10:42 +0000)
committerliamfallon <liam.fallon@est.tech>
Tue, 31 Jan 2023 12:25:52 +0000 (12:25 +0000)
commit6763c4b787593fa0a11668971ba2cb5cc87ad4c5
treed146a1268f7168ed37e69de71f0b433f7a924031
parent1b5c2ceafbe9b62e6c697db63f36d2b965402067
Upgrade and clean up dependencies

- Upgrade Hibernate
- Upgrade Mockito
- Upgrade Mockserver
- Remove Powermock (no longer supported) and replace with spring-test ReflectionTestUtils
- Upgrade Spring Framework
- Add spring-security to allow authentication on unit tests using MockMVC

Minor clean-up
- Replace deprecated authorization configuraiton on spring boot applications with SecurityFilterChain bean
- Change @LocalPort include on tests to use test include rather than runtime include
- Remove unused imports
- Remove unused constants and variables
- Add deprecation annotations where required

Issue-ID: POLICY-4482
Change-Id: Ifcabd73e4130810ba2a99b842ffa4203836c0682
Signed-off-by: liamfallon <liam.fallon@est.tech>
main/pom.xml
main/src/main/java/org/onap/policy/pap/main/config/WebSecurityConfig.java
main/src/main/java/org/onap/policy/pap/main/service/PdpStatisticsService.java
main/src/test/java/org/onap/policy/pap/main/comm/CommonRequestBase.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
main/src/test/java/org/onap/policy/pap/main/comm/msgdata/UpdateReqTest.java
main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java
main/src/test/java/org/onap/policy/pap/main/rest/TestActuatorEndpoints.java
main/src/test/java/org/onap/policy/pap/main/rest/TestProviderBase.java