@Test public void testFleschReadingEase() throws IOException { log.info("testFleschReadingEase"); double fleschReadingEase = readabilityService.calculateFleschReadingEase(source1); log.debug("Flesch Reading Ease {}", fleschReadingEase); assertTrue(fleschReadingEase > 41 && fleschReadingEase < 42); fleschReadingEase = readabilityService.calculateFleschReadingEase(source2); log.debug("Flesch Reading Ease {}", fleschReadingEase); assertTrue(fleschReadingEase > 31 && fleschReadingEase < 32); fleschReadingEase = readabilityService.calculateFleschReadingEase(source3); log.debug("Flesch Reading Ease {}", fleschReadingEase); assertTrue(fleschReadingEase > 82 && fleschReadingEase < 83); log.info("Tests successful!"); }
@Override public double calculateFleschReadingEase(String text) { return calculateFleschReadingEase(extractSentences(text)); }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateFleschReadingEase(String text) { return calculateFleschReadingEase(extractSentences(text)); } }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateFleschReadingEase(String text) { return calculateFleschReadingEase(extractSentences(text)); }  }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateFleschReadingEase(String text) { return calculateFleschReadingEase(extractSentences(text)); }  @Activate void activate(ReadabilityConfig config); @Override double calculateARI(String text); @Override double calculateARI(Text text); @Override double calculateAverageGradeLevel(String text); @Override double calculateAverageGradeLevel(Text text); @Override double calculateColemanLiauIndex(String text); @Override double calculateColemanLiauIndex(Text text); @Override double calculateFleschKincaidGradeLevel(String text); @Override double calculateFleschKincaidGradeLevel(Text text); @Override double calculateFleschReadingEase(String text); @Override double calculateFleschReadingEase(Text text); @Override double calculateGunningFog(String text); @Override double calculateGunningFog(Text text); @Override double calculateSMOG(String text); @Override double calculateSMOG(Text text); @Override Text extractSentences(String input); @Override Locale getLocale(); }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateFleschReadingEase(String text) { return calculateFleschReadingEase(extractSentences(text)); }  @Activate void activate(ReadabilityConfig config); @Override double calculateARI(String text); @Override double calculateARI(Text text); @Override double calculateAverageGradeLevel(String text); @Override double calculateAverageGradeLevel(Text text); @Override double calculateColemanLiauIndex(String text); @Override double calculateColemanLiauIndex(Text text); @Override double calculateFleschKincaidGradeLevel(String text); @Override double calculateFleschKincaidGradeLevel(Text text); @Override double calculateFleschReadingEase(String text); @Override double calculateFleschReadingEase(Text text); @Override double calculateGunningFog(String text); @Override double calculateGunningFog(Text text); @Override double calculateSMOG(String text); @Override double calculateSMOG(Text text); @Override Text extractSentences(String input); @Override Locale getLocale();  }