Changed to use parent method for Mock creation rather than new operator.
This commit is contained in:
parent
b1e10bc740
commit
4063a87dbf
|
@ -15,7 +15,7 @@ import javax.naming.directory.Attributes;
|
|||
public class PasswordComparisonAuthenticatorMockTests extends MockObjectTestCase {
|
||||
|
||||
public void testLdapCompareIsUsedWhenPasswordIsNotRetrieved() throws Exception {
|
||||
Mock mockCtx = new Mock(DirContext.class);
|
||||
Mock mockCtx = mock(DirContext.class);
|
||||
|
||||
PasswordComparisonAuthenticator authenticator =
|
||||
new PasswordComparisonAuthenticator(new MockInitialDirContextFactory(
|
||||
|
@ -57,5 +57,4 @@ public class PasswordComparisonAuthenticatorMockTests extends MockObjectTestCase
|
|||
return baseDn;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue