Replace casted Mockito.any() calls
Closes gh-11817
This commit is contained in:
committed by
Stephane Nicoll
parent
ab02e48c44
commit
a7663c88d3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -68,7 +68,7 @@ public class AuthenticationAuditListenerTests {
|
||||
this.listener.onApplicationEvent(new InteractiveAuthenticationSuccessEvent(
|
||||
new UsernamePasswordAuthenticationToken("user", "password"), getClass()));
|
||||
// No need to audit this one (it shadows a regular AuthenticationSuccessEvent)
|
||||
verify(this.publisher, never()).publishEvent((ApplicationEvent) any());
|
||||
verify(this.publisher, never()).publishEvent(any(ApplicationEvent.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user