@Test public void testChunkedWords() throws Exception { final Configuration configuration = Mockito.spy( new Configuration( StoredConfigurationFactory.newConfig() ) ); Mockito.when( configuration.readSettingAsLong( PwmSetting.PASSWORD_WORDLIST_WORDSIZE ) ).thenReturn( 4L ); final WordlistService wordlistService = makeWordlistService( configuration ); Assert.assertTrue( wordlistService.containsWord( "abcdefghijklmnopqrstuvwxyz" ) ); Assert.assertTrue( wordlistService.containsWord( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) ); Assert.assertFalse( wordlistService.containsWord( "A" ) ); Assert.assertFalse( wordlistService.containsWord( "AB" ) ); Assert.assertFalse( wordlistService.containsWord( "ABC" ) ); Assert.assertTrue( wordlistService.containsWord( "ABCD" ) ); Assert.assertTrue( wordlistService.containsWord( "ABCDE" ) ); Assert.assertTrue( wordlistService.containsWord( "ABCde" ) ); }
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 );  }