Clover Coverage Report - Pebble 2.5-SNAPSHOT
Coverage timestamp: Sat Jun 12 2010 09:39:29 EST
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
1   23   1   1
0   8   1   1
1     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  DisableCommentsDecorator       Line # 11 1 0% 1 0 100% 1.0
 
  (2)
 
1    package net.sourceforge.pebble.decorator;
2   
3    import net.sourceforge.pebble.domain.BlogEntry;
4    import net.sourceforge.pebble.api.decorator.ContentDecoratorContext;
5   
6    /**
7    * Disables comments for the blog entry.
8    *
9    * @author Simon Brown
10    */
 
11    public class DisableCommentsDecorator extends ContentDecoratorSupport {
12   
13    /**
14    * Decorates the specified blog entry.
15    *
16    * @param context the context in which the decoration is running
17    * @param blogEntry the blog entry to be decorated
18    */
 
19  2 toggle public void decorate(ContentDecoratorContext context, BlogEntry blogEntry) {
20  2 blogEntry.setCommentsEnabled(false);
21    }
22   
23    }