@Test public void compileWhenInCacheAndHTMLExport() throws Exception { when(cache.get(eq(lessResourceReference), eq(skinReference), eq(colorThemeReference))).thenReturn("cached output"); when(lessContext.isHtmlExport()).thenReturn(true); assertEquals("cached output", mocker.getComponentUnderTest().compile(lessResourceReference, false, true, false)); verify(cachedLESSCompiler).compute(eq(lessResourceReference), eq(false), eq(true), eq(false), eq("skin")); verify(cache, never()).set(any(LESSResourceReference.class), any(SkinReference.class), any(ColorThemeReference.class), any()); }
@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);  }