Skip to content

Commit

Permalink
Polish gh-13575
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnr committed Sep 7, 2023
1 parent 3a50c92 commit 9de717a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In order to use Spring Security's ``ResultHandler``s implementations ensure the
import static org.springframework.security.test.web.servlet.response.SecurityMockMvcResultHandlers.*;
----

==== Exporting the SecurityContext
== Exporting the SecurityContext

Often times we want to query a repository to see if some `MockMvc` request actually persisted in the database.
In some cases our repository query uses the xref:features/integrations/data.adoc[Spring Data Integration] to filter the results based on current user's username or any other property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import org.springframework.security.test.web.servlet.response.SecurityMockMvcRes
----
======

=== Unauthenticated Assertion
== Unauthenticated Assertion

At times it may be valuable to assert that there is no authenticated user associated with the result of a `MockMvc` invocation.
For example, you might want to test submitting an invalid username and password and verify that no user is authenticated.
Expand All @@ -49,7 +49,7 @@ mvc
----
======

=== Authenticated Assertion
== Authenticated Assertion

It is often times that we must assert that an authenticated user exists.
For example, we may want to verify that we authenticated successfully.
Expand Down

0 comments on commit 9de717a

Please sign in to comment.