Clover Coverage Report - Pebble 2.5-SNAPSHOT
Coverage timestamp: Sat Jun 12 2010 09:39:29 EST
5   28   2   2,5
0   13   0,4   2
2     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  AddBlogActionTest       Line # 10 5 0% 2 0 100% 1.0
 
  (2)
 
1    package net.sourceforge.pebble.web.action;
2   
3    import net.sourceforge.pebble.Constants;
4   
5    /**
6    * Tests for the AddBlogAction class.
7    *
8    * @author Simon Brown
9    */
 
10    public class AddBlogActionTest extends SecureActionTestCase {
11   
 
12  2 toggle protected void setUp() throws Exception {
13  2 action = new AddBlogAction();
14   
15  2 super.setUp();
16    }
17   
18    /**
19    * Tests that only Pebble admins can add blogs.
20    */
 
21  2 toggle public void testSecurityRolesForBlogImages() {
22  2 String roles[] = action.getRoles(request);
23   
24  2 assertEquals(1, roles.length);
25  2 assertEquals(Constants.BLOG_ADMIN_ROLE, roles[0]);
26    }
27   
28    }