@Test public void compileSkinFileWhenException() throws Exception { LESSResourceReference style = mock(LESSResourceReference.class); when(lessResourceReferenceFactory.createReferenceForSkinFile("style.less")).thenReturn(style); Exception exception = new LESSCompilerException("Exception with LESS", null); when(lessCompiler.compile(style, false, true, false)).thenThrow(exception); String result = mocker.getComponentUnderTest().compileSkinFile("style.less", false); assertEquals("LESSCompilerException: Exception with LESS", result); }
public String compileSkinFile(String fileName) { return compileSkinFile(fileName, false); }
LessCompilerScriptService implements ScriptService { public String compileSkinFile(String fileName) { return compileSkinFile(fileName, false); } }
LessCompilerScriptService implements ScriptService { public String compileSkinFile(String fileName) { return compileSkinFile(fileName, false); }  }
LessCompilerScriptService implements ScriptService { public String compileSkinFile(String fileName) { return compileSkinFile(fileName, false); }  String compileSkinFile(String fileName); String compileSkinFile(String fileName, boolean force); String compileSkinFile(String fileName, String skin); String compileSkinFile(String fileName, String skin, boolean force); ColorTheme getColorThemeFromSkinFile(String filename); ColorTheme getColorThemeFromSkinFile(String filename, String skin); boolean clearCache(); boolean clearCacheFromColorTheme(String colorTheme); boolean clearCacheFromSkin(String skin); }
LessCompilerScriptService implements ScriptService { public String compileSkinFile(String fileName) { return compileSkinFile(fileName, false); }  String compileSkinFile(String fileName); String compileSkinFile(String fileName, boolean force); String compileSkinFile(String fileName, String skin); String compileSkinFile(String fileName, String skin, boolean force); ColorTheme getColorThemeFromSkinFile(String filename); ColorTheme getColorThemeFromSkinFile(String filename, String skin); boolean clearCache(); boolean clearCacheFromColorTheme(String colorTheme); boolean clearCacheFromSkin(String skin);  }