Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
7   44   2   3.5
0   16   0.29   2
2     1  
1    
 
  AuthorVoTest       Line # 24 7 2 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   
19    /**
20    * Test class {@link org.qedeq.kernel.se.dto.module.AuthorVo}.
21    *
22    * @author Michael Meyling
23    */
 
24    public class AuthorVoTest extends AbstractVoModuleTestCase {
25   
26    /** This class is tested. */
27    private Class clazz = AuthorVo.class;
28   
29    private AuthorVo vo;
30   
 
31  48 toggle protected Class getTestedClass() {
32  48 return clazz;
33    }
34   
 
35  1 toggle public void testConstructor() {
36  1 vo = new AuthorVo(null, null);
37  1 assertNull(vo.getEmail());
38  1 assertNull(vo.getName());
39  1 vo = new AuthorVo(new LatexVo("en", "name"), "mail@mail.org");
40  1 assertEquals("mail@mail.org", vo.getEmail());
41  1 assertEquals(new LatexVo("en", "name"), vo.getName());
42    }
43   
44    }