Coverage Report - org.webslinger.template.TemplateMacroStringBodyImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
TemplateMacroStringBodyImpl
0%
0/7
N/A
0
 
 1  
 package org.webslinger.template;
 2  
 
 3  
 import java.io.IOException;
 4  
 import java.io.Writer;
 5  
 import java.util.Map;
 6  
 
 7  
 public final class TemplateMacroStringBodyImpl implements TemplateMacro.Body {
 8  
     private final Object source;
 9  
     private final String body;
 10  
 
 11  0
     public TemplateMacroStringBodyImpl(Object source, String body) {
 12  0
         this.source = source;
 13  0
         this.body = body;
 14  0
     }
 15  
 
 16  
     public boolean render(Writer writer, Map<String, Object> context) throws IOException {
 17  0
         writer.write(body);
 18  0
         return true;
 19  
     }
 20  
 
 21  
     public Object getSource() {
 22  0
         return source;
 23  
     }
 24  
 }