Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
13   63   5   2.6
0   31   0.38   5
5     1  
1    
 
  ExistentialVoTest       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.ExistentialVo}.
24    *
25    * @author Michael Meyling
26    */
 
27    public class ExistentialVoTest extends AbstractVoModuleTestCase {
28   
29    /** This class is tested. */
30    private Class clazz = ExistentialVo.class;
31   
32    private ExistentialVo existential0;
33    private ExistentialVo existential1;
34   
 
35  4 toggle protected void setUp() throws Exception {
36  4 super.setUp();
37  4 removeMethodToCheck("getExistential");
38  4 removeMethodToCheck("getName");
39  4 removeMethodToCheck("getReferences");
40  4 existential0 = new ExistentialVo();
41  4 existential1 = new ExistentialVo("first", new DefaultAtom("first"));
42    }
43   
 
44  56 toggle protected Class getTestedClass() {
45  56 return clazz;
46    }
47   
 
48  1 toggle public void testGetExistential() {
49  1 assertEquals(existential0, existential0.getExistential());
50  1 assertEquals(existential1, existential1.getExistential());
51    }
52   
 
53  1 toggle public void testGetName() {
54  1 assertEquals("Existential", existential0.getName());
55  1 assertEquals("Existential", existential1.getName());
56    }
57   
 
58  1 toggle public void testGetReferences() {
59  1 assertTrue(EqualsUtility.equals(new String[] {}, existential0.getReferences()));
60  1 assertTrue(EqualsUtility.equals(new String[] {"first"}, existential1.getReferences()));
61    }
62   
63    }