Skip to content

Commit

Permalink
Support Custom RequestMatchers for WebAuthn
Browse files Browse the repository at this point in the history
Signed-off-by: topiam <[email protected]>
  • Loading branch information
topiam committed Feb 25, 2025
1 parent c7a2278 commit d7fbb05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void cleanup() {
}

@Test
public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRequestMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void clear() {
}

@Test
public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRequestMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
Expand All @@ -100,7 +100,7 @@ public void doFilterWhenCustomRequestMatcherThenUses() throws Exception {
}

@Test
public void setRequestMatcherWhenNullThenIllegalArgument() {
void setRequestMatcherWhenNullThenIllegalArgument() {
assertThatIllegalArgumentException().isThrownBy(() -> this.filter.setRequestMatcher(null));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void setup() {
}

@Test
public void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws Exception {
void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws Exception {
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRegisterCredentialMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
Expand All @@ -121,7 +121,7 @@ public void doFilterWhenCustomRequestRegisterCredentialMatcherThenUses() throws
}

@Test
public void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Exception {
void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Exception {
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.filter.setRemoveCredentialMatcher(requestMatcher);
FilterChain mock = mock(FilterChain.class);
Expand All @@ -130,12 +130,12 @@ public void doFilterWhenCustomRequestRemoveCredentialMatcherThenUses() throws Ex
}

@Test
public void setRequestRegisterCredentialWhenNullThenIllegalArgument() {
void setRequestRegisterCredentialWhenNullThenIllegalArgument() {
assertThatIllegalArgumentException().isThrownBy(() -> this.filter.setRegisterCredentialMatcher(null));
}

@Test
public void setRequestRemoveCredentialWhenNullThenIllegalArgument() {
void setRequestRemoveCredentialWhenNullThenIllegalArgument() {
assertThatIllegalArgumentException().isThrownBy(() -> this.filter.setRemoveCredentialMatcher(null));
}

Expand Down

0 comments on commit d7fbb05

Please sign in to comment.