Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
6   50   3   2
0   19   0.5   3
3     1  
1    
 
  TermVoTest       Line # 26 6 3 100% 1.0
 
  (2)
 
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.kernel.se.dto.list.DefaultAtom;
19   
20   
21    /**
22    * Test class {@link org.qedeq.kernel.se.dto.module.TermVo}.
23    *
24    * @author Michael Meyling
25    */
 
26    public class TermVoTest extends AbstractVoModuleTestCase {
27   
28    /** This class is tested. */
29    private Class clazz = TermVo.class;
30   
31    private TermVo v0;
32   
33    private TermVo v1;
34   
 
35  2 toggle protected void setUp() throws Exception {
36  2 super.setUp();
37  2 v0 = new TermVo();
38  2 v1 = new TermVo(new DefaultAtom("atom"));
39    }
40   
 
41  37 toggle protected Class getTestedClass() {
42  37 return clazz;
43    }
44   
 
45  1 toggle public void testGetElement() {
46  1 assertNull(v0.getElement());
47  1 assertEquals(new DefaultAtom("atom"), v1.getElement());
48    }
49   
50    }