@Test public void testAnalyze_lowerleft() throws Exception { System.out.println("analyze"); PasswordAnalysis pass = new PasswordAnalysis("4esz"); KeySequenceFinder instance = new KeySequenceFinder(new EnglishKeyBoard()); instance.analyze(pass); int count = pass.getPossiblePatternCount(); assertEquals(3, count); }
@Test public void testAnalyze_extraBeforeAndAfter_MixedCase() throws Exception { System.out.println("analyze"); PasswordAnalysis pass = new PasswordAnalysis("freSdFcougar2WsX"); KeySequenceFinder instance = new KeySequenceFinder(new EnglishKeyBoard()); instance.analyze(pass); int count = pass.getPossiblePatternCount(); assertEquals(4, count); }