assertTrue(plugin.isAuthenticationEnabled());
}
public void testSetAuthenticationPolicy() {
ShiroPlugin plugin = new ShiroPlugin();
DefaultAuthenticationPolicy policy = new DefaultAuthenticationPolicy();
plugin.setAuthenticationPolicy(policy);
assertSame(policy, plugin.getAuthenticationPolicy());
assertSame(policy, plugin.getAuthenticationFilter().getAuthenticationPolicy());
assertSame(policy, ((DefaultConnectionSubjectFactory) plugin.getSubjectFilter().getConnectionSubjectFactory()).getAuthenticationPolicy());
}