@Test public void testGunningFog() throws IOException { log.info("testGunningFog"); double gunningFog = readabilityService.calculateGunningFog(source1); log.debug("Gunning Fog {}", gunningFog); assertTrue(gunningFog > 15 && gunningFog < 17); gunningFog = readabilityService.calculateGunningFog(source2); log.debug("Gunning Fog {}", gunningFog); assertTrue(gunningFog > 15 && gunningFog < 17); gunningFog = readabilityService.calculateGunningFog(source3); log.debug("Gunning Fog {}", gunningFog); assertTrue(gunningFog > 7 && gunningFog < 9); log.info("Tests successful!"); }
@Override public double calculateGunningFog(String text) { return calculateGunningFog(extractSentences(text)); }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateGunningFog(String text) { return calculateGunningFog(extractSentences(text)); } }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateGunningFog(String text) { return calculateGunningFog(extractSentences(text)); }  }
ReadabilityServiceImpl implements ReadabilityService { @Override public double calculateGunningFog(String text) { return calculateGunningFog(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 calculateGunningFog(String text) { return calculateGunningFog(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();  }