Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
15   66   5   3
0   33   0.33   5
5     1  
1    
 
  SubstPredVoTest       Line # 27 15 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.SubstPredVo}.
24    *
25    * @author Michael Meyling
26    */
 
27    public class SubstPredVoTest extends AbstractVoModuleTestCase {
28   
29    /** This class is tested. */
30    private Class clazz = SubstPredVo.class;
31   
32    private SubstPredVo subst0;
33   
34    private SubstPredVo subst1;
35   
 
36  4 toggle protected void setUp() throws Exception {
37  4 super.setUp();
38  4 removeMethodToCheck("getSubstPred");
39  4 removeMethodToCheck("getName");
40  4 removeMethodToCheck("getReferences");
41  4 subst0 = new SubstPredVo();
42  4 subst1 = new SubstPredVo("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 testGetSubstPred() {
50  1 assertEquals(subst0, subst0.getSubstPred());
51  1 assertEquals(subst1, subst1.getSubstPred());
52  1 assertFalse(subst0.equals(subst1));
53  1 assertFalse(subst0.getSubstPred().equals(subst1.getSubstPred()));
54    }
55   
 
56  1 toggle public void testGetName() {
57  1 assertEquals("SubstPred", subst0.getName());
58  1 assertEquals("SubstPred", subst1.getName());
59    }
60   
 
61  1 toggle public void testGetReferences() {
62  1 assertTrue(EqualsUtility.equals(new String[] {}, subst0.getReferences()));
63  1 assertTrue(EqualsUtility.equals(new String[] {"first"}, subst1.getReferences()));
64    }
65   
66    }