Eric Rybarczyk

Eric Rybarczyk

Enthusiastic and motivated software engineer with diverse experience

AWS & Java Certified Developer

Mock Custom User

Building a Mock object for custom UserDetails implementations in Spring Security

Eric Rybarczyk

spring security guard

While working through the Spring Security aspects of my SpringBikeClinic.com project, I implemented SecurityUser, a custom UserDetails object which was composed with a User database entity. For unit testing my @Controller code, I wanted a clean way to provide a mock instance of my custom user type.

Article Series

Software Projects

Recent Posts

Categories

About

Enthusiastic and motivated software engineer