Upgrade and clean up dependencies 80/133080/1
authorliamfallon <liam.fallon@est.tech>
Tue, 31 Jan 2023 10:41:41 +0000 (10:41 +0000)
committerliamfallon <liam.fallon@est.tech>
Tue, 31 Jan 2023 12:16:20 +0000 (12:16 +0000)
commit27a8d72687096cc01af9f1b4338adadbf20c53e4
treee7038622d27365b9d4bd4d32669f2b8d2df31b9f
parent50816e1fdd0da6b932c3595f41425b595c3823f0
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: Id003bd0fecbdc7fe96a529cd6178a9a373d33963
Signed-off-by: liamfallon <liam.fallon@est.tech>
main/src/main/java/org/onap/policy/api/main/config/SecurityConfig.java
main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java
main/src/test/java/org/onap/policy/api/main/rest/TestNodeTemplateController.java
main/src/test/java/org/onap/policy/api/main/rest/stub/ApisRestControllerStubTest.java