@Test public void launchCompilation_Empty_File() throws IOException, CompilationException { final LibSassCompiler compiler = new LibSassCompiler(this.logger, this.parametersProvider); final Output output = compiler.launchCompilation(); Assert.assertTrue(output.getCss() != null); Assert.assertTrue(StringUtils.isBlank(output.getCss())); Mockito.verify(this.logger, Mockito.never()).error(Mockito.anyString()); }
protected Output launchCompilation() throws CompilationException { if (this.logger.isInfoEnabled()) { this.logger.info("Launching compilation"); } final io.bit3.jsass.Compiler compiler = new io.bit3.jsass.Compiler(); try { final Output output = compiler.compileFile( this.parametersProvider.getInputUri(), this.parametersProvider.getOutputUri(), this.options); if (this.logger.isInfoEnabled()) { this.logger.info("End of compilation"); } return output; } catch (final CompilationException compilationException) { this.logger.error(compilationException.getErrorFile()); this.logger.error(compilationException.getErrorJson()); this.logger.error(compilationException.getErrorMessage()); this.logger.error(compilationException.getErrorSrc()); this.logger.error(compilationException.getErrorText()); throw compilationException; } }
LibSassCompiler { protected Output launchCompilation() throws CompilationException { if (this.logger.isInfoEnabled()) { this.logger.info("Launching compilation"); } final io.bit3.jsass.Compiler compiler = new io.bit3.jsass.Compiler(); try { final Output output = compiler.compileFile( this.parametersProvider.getInputUri(), this.parametersProvider.getOutputUri(), this.options); if (this.logger.isInfoEnabled()) { this.logger.info("End of compilation"); } return output; } catch (final CompilationException compilationException) { this.logger.error(compilationException.getErrorFile()); this.logger.error(compilationException.getErrorJson()); this.logger.error(compilationException.getErrorMessage()); this.logger.error(compilationException.getErrorSrc()); this.logger.error(compilationException.getErrorText()); throw compilationException; } } }
LibSassCompiler { protected Output launchCompilation() throws CompilationException { if (this.logger.isInfoEnabled()) { this.logger.info("Launching compilation"); } final io.bit3.jsass.Compiler compiler = new io.bit3.jsass.Compiler(); try { final Output output = compiler.compileFile( this.parametersProvider.getInputUri(), this.parametersProvider.getOutputUri(), this.options); if (this.logger.isInfoEnabled()) { this.logger.info("End of compilation"); } return output; } catch (final CompilationException compilationException) { this.logger.error(compilationException.getErrorFile()); this.logger.error(compilationException.getErrorJson()); this.logger.error(compilationException.getErrorMessage()); this.logger.error(compilationException.getErrorSrc()); this.logger.error(compilationException.getErrorText()); throw compilationException; } } LibSassCompiler(final Logger logger,
            final PluginParametersProvider parametersProvider); }
LibSassCompiler { protected Output launchCompilation() throws CompilationException { if (this.logger.isInfoEnabled()) { this.logger.info("Launching compilation"); } final io.bit3.jsass.Compiler compiler = new io.bit3.jsass.Compiler(); try { final Output output = compiler.compileFile( this.parametersProvider.getInputUri(), this.parametersProvider.getOutputUri(), this.options); if (this.logger.isInfoEnabled()) { this.logger.info("End of compilation"); } return output; } catch (final CompilationException compilationException) { this.logger.error(compilationException.getErrorFile()); this.logger.error(compilationException.getErrorJson()); this.logger.error(compilationException.getErrorMessage()); this.logger.error(compilationException.getErrorSrc()); this.logger.error(compilationException.getErrorText()); throw compilationException; } } LibSassCompiler(final Logger logger,
            final PluginParametersProvider parametersProvider); void compileFile(); }
LibSassCompiler { protected Output launchCompilation() throws CompilationException { if (this.logger.isInfoEnabled()) { this.logger.info("Launching compilation"); } final io.bit3.jsass.Compiler compiler = new io.bit3.jsass.Compiler(); try { final Output output = compiler.compileFile( this.parametersProvider.getInputUri(), this.parametersProvider.getOutputUri(), this.options); if (this.logger.isInfoEnabled()) { this.logger.info("End of compilation"); } return output; } catch (final CompilationException compilationException) { this.logger.error(compilationException.getErrorFile()); this.logger.error(compilationException.getErrorJson()); this.logger.error(compilationException.getErrorMessage()); this.logger.error(compilationException.getErrorSrc()); this.logger.error(compilationException.getErrorText()); throw compilationException; } } LibSassCompiler(final Logger logger,
            final PluginParametersProvider parametersProvider); void compileFile();  }