private static Log LOGGER = LogFactory.getLog(Firefox2or3Locator.class);
public BrowserInstallation findBrowserLocationOrFail() {
LOGGER.debug("Dicovering Firefox 2...");
final BrowserInstallation firefox2Location = new Firefox2Locator().findBrowserLocation();
if (null != firefox2Location) {
return firefox2Location;
}
LOGGER.debug("Did not find Firefox 2, now dicovering Firefox 3...");
final BrowserInstallation firefox3Location = new Firefox3Locator().findBrowserLocation();
if (null != firefox3Location) {
return firefox3Location;
}
throw new RuntimeException(couldNotFindFirefoxMessage());