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    
 
  RenameVoTest       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.RenameVo}.
24    *
25    * @author Michael Meyling
26    */
 
27    public class RenameVoTest extends AbstractVoModuleTestCase {
28   
29    /** This class is tested. */
30    private Class clazz = RenameVo.class;
31   
32    private RenameVo rename0;
33   
34    private RenameVo rename1;
35   
 
36  4 toggle protected void setUp() throws Exception {
37  4 super.setUp();
38  4 removeMethodToCheck("getRename");
39  4 removeMethodToCheck("getName");
40  4 removeMethodToCheck("getReferences");
41  4 rename0 = new RenameVo();
42  4 rename1 = new RenameVo("first", new DefaultAtom("first"), new DefaultAtom("second"), 3);
43    }
44   
 
45  77 toggle protected Class getTestedClass() {
46  77 return clazz;
47    }
48   
 
49  1 toggle public void testGetRename() {
50  1 assertEquals(rename0, rename0.getRename());
51  1 assertEquals(rename1, rename1.getRename());
52    }
53   
 
54  1 toggle public void testGetName() {
55  1 assertEquals("Rename", rename0.getName());
56  1 assertEquals("Rename", rename1.getName());
57    }
58   
 
59  1 toggle public void testGetReferences() {
60  1 assertTrue(EqualsUtility.equals(new String[] {}, rename0.getReferences()));
61  1 assertTrue(EqualsUtility.equals(new String[] {"first"}, rename1.getReferences()));
62    }
63   
64    }