@Test public void compileWhenError() throws Exception { LESSCompilerException expectedException = new LESSCompilerException("an exception"); when(cachedLESSCompiler.compute(any(LESSResourceReference.class), anyBoolean(), anyBoolean(), anyBoolean(), any())).thenThrow(expectedException); String result = mocker.getComponentUnderTest().compile(lessResourceReference, false, false, false); assertTrue(StringUtils.startsWith(result, "")); verify(cache).set(eq(lessResourceReference), eq(skinReference), eq(colorThemeReference), eq(result)); verify(mocker.getMockedLogger()).error(eq("Error during the compilation of the resource [{}]."), eq(lessResourceReference), eq(expectedException)); }
@Override public String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity, boolean force) throws LESSCompilerException { return super.getResult(lessResourceReference, includeSkinStyle, useVelocity, force); }
DefaultLESSCompiler extends AbstractCachedCompiler<String> implements LESSCompiler,
    Initializable { @Override public String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity, boolean force) throws LESSCompilerException { return super.getResult(lessResourceReference, includeSkinStyle, useVelocity, force); } }
DefaultLESSCompiler extends AbstractCachedCompiler<String> implements LESSCompiler,
    Initializable { @Override public String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity, boolean force) throws LESSCompilerException { return super.getResult(lessResourceReference, includeSkinStyle, useVelocity, force); }  }
DefaultLESSCompiler extends AbstractCachedCompiler<String> implements LESSCompiler,
    Initializable { @Override public String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity, boolean force) throws LESSCompilerException { return super.getResult(lessResourceReference, includeSkinStyle, useVelocity, force); }  @Override void initialize(); @Override String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity,
                          boolean force); @Override String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity,
                         String skin, boolean force); }
DefaultLESSCompiler extends AbstractCachedCompiler<String> implements LESSCompiler,
    Initializable { @Override public String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity, boolean force) throws LESSCompilerException { return super.getResult(lessResourceReference, includeSkinStyle, useVelocity, force); }  @Override void initialize(); @Override String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity,
                          boolean force); @Override String compile(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity,
                         String skin, boolean force);  }