@Test public void testCaseSensitiveWordlist() throws Exception { final Configuration configuration = Mockito.spy( new Configuration( StoredConfigurationFactory.newConfig() ) ); Mockito.when( configuration.readSettingAsBoolean( PwmSetting.WORDLIST_CASE_SENSITIVE ) ).thenReturn( true ); final WordlistService wordlistService = makeWordlistService( configuration ); Assert.assertTrue( wordlistService.containsWord( "password-test" ) ); Assert.assertFalse( wordlistService.containsWord( "PASSWORD-TEST" ) ); Assert.assertTrue( wordlistService.containsWord( "abcdefghijklmnopqrstuvwxyz" ) ); Assert.assertFalse( wordlistService.containsWord( "AbcdefghijklmnopqrstuvwxyZ" ) ); Assert.assertTrue( wordlistService.containsWord( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) ); }
public boolean containsWord( final String word ) throws PwmUnrecoverableException { return super.containsWord( this.getWordTypesCache(), word ); }
WordlistService extends AbstractWordlist implements Wordlist { public boolean containsWord( final String word ) throws PwmUnrecoverableException { return super.containsWord( this.getWordTypesCache(), word ); } }
WordlistService extends AbstractWordlist implements Wordlist { public boolean containsWord( final String word ) throws PwmUnrecoverableException { return super.containsWord( this.getWordTypesCache(), word ); } WordlistService( ); }
WordlistService extends AbstractWordlist implements Wordlist { public boolean containsWord( final String word ) throws PwmUnrecoverableException { return super.containsWord( this.getWordTypesCache(), word ); } WordlistService( ); void init( final PwmApplication pwmApplication ); boolean containsWord( final String word ); }
WordlistService extends AbstractWordlist implements Wordlist { public boolean containsWord( final String word ) throws PwmUnrecoverableException { return super.containsWord( this.getWordTypesCache(), word ); } WordlistService( ); void init( final PwmApplication pwmApplication ); boolean containsWord( final String word );  }