View Javadoc
1   package com.github.searls.jasmine.format;
2   
3   import com.github.searls.jasmine.model.JasmineResult;
4   import org.apache.maven.plugin.logging.Log;
5   
6   
7   public class JasmineResultLogger {
8   
9     public static final String HEADER = "\n" +
10      "-------------------------------------------------------\n" +
11      " J A S M I N E   S P E C S\n" +
12      "-------------------------------------------------------";
13  
14    private Log log;
15  
16    public void setLog(Log log) {
17      this.log = log;
18    }
19  
20    public void log(JasmineResult result) {
21      log.info(HEADER);
22      log.info(result.getDetails());
23    }
24  
25  }