@Test public void should_throw_an_illegal_state_exception_as_the_browserLevelSupport_parameter_is_not_valid() { try { FontFaceBrowserCompatibilityCheck check = new FontFaceBrowserCompatibilityCheck(); check.setBrowserSupportLevel("blabla"); CssCheckVerifier.issuesOnCssFile(check, CheckTestUtils.getCommonTestFile("fontface/deepest.css")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check css:font-face-browser-compatibility (\"@font-face\" rule should " + "be made compatible with the required browsers): parameter value is not valid.\n" + "Actual: 'blabla'\n" + "Expected: 'basic' or 'deep' or 'deepest'"); } }
@VisibleForTesting void setBrowserSupportLevel(String browserSupportLevel) { this.browserSupportLevel = browserSupportLevel; }
FontFaceBrowserCompatibilityCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setBrowserSupportLevel(String browserSupportLevel) { this.browserSupportLevel = browserSupportLevel; } }
FontFaceBrowserCompatibilityCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setBrowserSupportLevel(String browserSupportLevel) { this.browserSupportLevel = browserSupportLevel; }  }
FontFaceBrowserCompatibilityCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setBrowserSupportLevel(String browserSupportLevel) { this.browserSupportLevel = browserSupportLevel; }  @Override void visitAtRule(AtRuleTree tree); @Override void validateParameters(); }
FontFaceBrowserCompatibilityCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setBrowserSupportLevel(String browserSupportLevel) { this.browserSupportLevel = browserSupportLevel; }  @Override void visitAtRule(AtRuleTree tree); @Override void validateParameters();  }