Skip to content

Commit

Permalink
Merge pull request #30308 from izeye
Browse files Browse the repository at this point in the history
* pr/30308:
  Add since tags to sameSite() and attribute() in CookieResultMatchersDsl

Closes gh-30308
  • Loading branch information
snicoll committed Apr 11, 2023
2 parents 073226d + 8f5a1fe commit 695601a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ class CookieResultMatchersDsl internal constructor (private val actions: ResultA

/**
* @see CookieResultMatchers.sameSite
* @since 6.0.8
*/
fun sameSite(name: String, matcher: Matcher<String>) {
actions.andExpect(matchers.sameSite(name, matcher))
}

/**
* @see CookieResultMatchers.sameSite
* @since 6.0.8
*/
fun sameSite(name: String, sameSite: String) {
actions.andExpect(matchers.sameSite(name, sameSite))
Expand Down Expand Up @@ -157,13 +159,15 @@ class CookieResultMatchersDsl internal constructor (private val actions: ResultA

/**
* @see CookieResultMatchers.attribute
* @since 6.0.8
*/
fun attribute(name: String, attributeName: String, matcher: Matcher<String>) {
actions.andExpect(matchers.attribute(name, attributeName, matcher))
}

/**
* @see CookieResultMatchers.attribute
* @since 6.0.8
*/
fun attribute(name: String, attributeName: String, attributeValue: String) {
actions.andExpect(matchers.attribute(name, attributeName, attributeValue))
Expand Down

0 comments on commit 695601a

Please sign in to comment.