@Test public void compileWhenInCache() throws Exception { when(cache.get(eq(lessResourceReference), eq(new FSSkinReference("skin")), eq(new NamedColorThemeReference("colorTheme")))).thenReturn("cached output"); assertEquals("cached output", mocker.getComponentUnderTest().compile(lessResourceReference, false, false, false)); verify(cache, never()).set(eq(lessResourceReference), eq(skinReference), eq(colorThemeReference), eq("cache output")); }
@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);  }