@Test public void testColemanLiau() throws IOException { log.info("testColemanLiau"); double colemanLiauIndex = readabilityService.calculateColemanLiauIndex(source1); log.debug("ColemanLiau {}", colemanLiauIndex); assertTrue(colemanLiauIndex > 13 && colemanLiauIndex < 14); colemanLiauIndex = readabilityService.calculateColemanLiauIndex(source2); log.debug("ColemanLiau {}", colemanLiauIndex); assertTrue(colemanLiauIndex > 17 && colemanLiauIndex < 18); colemanLiauIndex = readabilityService.calculateColemanLiauIndex(source3); log.debug("ColemanLiau {}", colemanLiauIndex); assertTrue(colemanLiauIndex > 7 && colemanLiauIndex < 8); log.info("Tests successful!"); }
@Override public double calculateColemanLiauIndex(String text) { return calculateColemanLiauIndex(extractSentences(text)); }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateColemanLiauIndex(String text) { return calculateColemanLiauIndex(extractSentences(text)); } }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateColemanLiauIndex(String text) { return calculateColemanLiauIndex(extractSentences(text)); }  }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateColemanLiauIndex(String text) { return calculateColemanLiauIndex(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 calculateColemanLiauIndex(String text) { return calculateColemanLiauIndex(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();  }