xinra-oss / review-community

Other
2 stars 0 forks source link

Fix controller tests with authorization #39

Closed erikhofer closed 6 years ago

erikhofer commented 6 years ago

Only setting username as principal doesn't work anymore because the ContextConfiguringInterceptor expects a AuthenticatedUserDto.

Instead of using a mock AuthenticatedUserDto it would be nice to be able to use the sample users that are created by the SampleContentGenerator.