Clover Coverage Report
Coverage timestamp: Sa Aug 2 2008 13:56:27 CEST
6   63   3   2
0   20   0,5   3
3     1  
1    
 
  IoUtilityTest       Line # 30 6 3 100% 1.0
 
  (1)
 
1    /* $Id: IoUtilityTest.java,v 1.1 2008/07/26 07:56:13 m31 Exp $
2    *
3    * This file is part of the project "Hilbert II" - http://www.qedeq.org
4    *
5    * Copyright 2000-2008, Michael Meyling <mime@qedeq.org>.
6    *
7    * "Hilbert II" is free software; you can redistribute
8    * it and/or modify it under the terms of the GNU General Public
9    * License as published by the Free Software Foundation; either
10    * version 2 of the License, or (at your option) any later version.
11    *
12    * This program is distributed in the hope that it will be useful,
13    * but WITHOUT ANY WARRANTY; without even the implied warranty of
14    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15    * GNU General Public License for more details.
16    */
17   
18    package org.qedeq.base.io;
19   
20    import java.io.File;
21   
22    import org.qedeq.base.test.QedeqTestCase;
23   
24    /**
25    * Test {@link org.qedeq.kernel.utility.TextInput}.
26    *
27    * @version $Revision: 1.1 $
28    * @author Michael Meyling
29    */
 
30    public class IoUtilityTest extends QedeqTestCase {
31   
32   
33    /*
34    * @see TestCase#setUp()
35    */
 
36  1 toggle protected void setUp() throws Exception {
37  1 super.setUp();
38    }
39   
40    /*
41    * @see TestCase#tearDown()
42    */
 
43  1 toggle protected void tearDown() throws Exception {
44  1 super.tearDown();
45    }
46   
47   
48    /**
49    * Test createRelativePath(final File orgin, final File next).
50    *
51    * @throws Exception
52    */
 
53  1 toggle public void testCreateRelativePath() throws Exception {
54  1 assertEquals("local", IoUtility.createRelativePath(new File("."), new File ("local")));
55  1 assertEquals("text", IoUtility.createRelativePath(new File("/local/data"),
56    new File ("/local/data/text")));
57  1 assertEquals("../../green", IoUtility.createRelativePath(new File("/local/data"),
58    new File ("/green")));
59  1 assertEquals("../green", IoUtility.createRelativePath(new File("/local/data"),
60    new File ("/local/green")));
61    }
62   
63    }