Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
13   64   5   2.6
0   31   0.38   5
5     1  
1    
 
  SubstFuncVoTest       Line # 27 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    import org.qedeq.kernel.se.dto.list.DefaultAtom;
20   
21   
22    /**
23    * Test class {@link org.qedeq.kernel.se.dto.module.SubstFuncVo}.
24    *
25    * @author Michael Meyling
26    */
 
27    public class SubstFuncVoTest extends AbstractVoModuleTestCase {
28   
29    /** This class is tested. */
30    private Class clazz = SubstFuncVo.class;
31   
32    private SubstFuncVo subst0;
33   
34    private SubstFuncVo subst1;
35   
 
36  4 toggle protected void setUp() throws Exception {
37  4 super.setUp();
38  4 removeMethodToCheck("getSubstFunc");
39  4 removeMethodToCheck("getName");
40  4 removeMethodToCheck("getReferences");
41  4 subst0 = new SubstFuncVo();
42  4 subst1 = new SubstFuncVo("first", new DefaultAtom("first"), new DefaultAtom("second"));
43    }
44   
 
45  67 toggle protected Class getTestedClass() {
46  67 return clazz;
47    }
48   
 
49  1 toggle public void testGetSubstFunc() {
50  1 assertEquals(subst0, subst0.getSubstFunc());
51  1 assertEquals(subst1, subst1.getSubstFunc());
52    }
53   
 
54  1 toggle public void testGetName() {
55  1 assertEquals("SubstFun", subst0.getName());
56  1 assertEquals("SubstFun", subst1.getName());
57    }
58   
 
59  1 toggle public void testGetReferences() {
60  1 assertTrue(EqualsUtility.equals(new String[] {}, subst0.getReferences()));
61  1 assertTrue(EqualsUtility.equals(new String[] {"first"}, subst1.getReferences()));
62    }
63   
64    }