Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Jan 16, 2025
1 parent ace232c commit 47ef748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion karibu-testing-v10-spring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Java:
MockVaadin.INSTANCE.setMockRequestFactory(session -> new FakeRequest(session) {
@Override
public @Nullable Principal getUserPrincipal() {
return null; // SecurityContextHolder.getContext().getAuthentication()
return SecurityContextHolder.getContext().getAuthentication();
}
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public MockVaadinJApiTest() {
MockVaadin.INSTANCE.setMockRequestFactory(session -> new FakeRequest(session) {
@Override
public @Nullable Principal getUserPrincipal() {
return null; // SecurityContextHolder.getContext().getAuthentication()
return null; // SecurityContextHolder.getContext().getAuthentication();
}
});
}
Expand Down

0 comments on commit 47ef748

Please sign in to comment.