Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
13   62   5   2.6
0   30   0.38   5
5     1  
1    
 
  AddVoTest       Line # 26 13 5 100% 1.0
 
  (4)
 
1    /* This file is part of the project "Hilbert II" - http://www.qedeq.org
2    *
3    * Copyright 2000-2013, Michael Meyling <mime@qedeq.org>.
4    *
5    * "Hilbert II" is free software; you can redistribute
6    * it and/or modify it under the terms of the GNU General Public
7    * License as published by the Free Software Foundation; either
8    * version 2 of the License, or (at your option) any later version.
9    *
10    * This program is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13    * GNU General Public License for more details.
14    */
15   
16    package org.qedeq.kernel.se.dto.module;
17   
18    import org.qedeq.base.utility.EqualsUtility;
19   
20   
21    /**
22    * Test class {@link org.qedeq.kernel.se.dto.module.AddVo}.
23    *
24    * @author Michael Meyling
25    */
 
26    public class AddVoTest extends AbstractVoModuleTestCase {
27   
28    /** This class is tested. */
29    private Class clazz = AddVo.class;
30   
31    private AddVo add1;
32    private AddVo add2;
33   
 
34  4 toggle protected void setUp() throws Exception {
35  4 super.setUp();
36  4 removeMethodToCheck("getAdd");
37  4 removeMethodToCheck("getName");
38  4 removeMethodToCheck("getReferences");
39  4 add1 = new AddVo("first");
40  4 add2 = new AddVo();
41    }
42   
 
43  45 toggle protected Class getTestedClass() {
44  45 return clazz;
45    }
46   
 
47  1 toggle public void testGetName() {
48  1 assertEquals("Add", add1.getName());
49  1 assertEquals("Add", add2.getName());
50    }
51   
 
52  1 toggle public void testGetModusPonens() {
53  1 assertEquals(add1, add1.getAdd());
54  1 assertEquals(add2, add2.getAdd());
55    }
56   
 
57  1 toggle public void testGetReferences() {
58  1 assertTrue(EqualsUtility.equals(new String[] {"first"}, add1.getReferences()));
59  1 assertTrue(EqualsUtility.equals(new String[] {}, add2.getReferences()));
60    }
61   
62    }