Project

General

Profile

« Previous | Next » 

Revision 9474

Added by Jing Tao almost 9 years ago

Add a junit test.

View differences:

test/edu/ucsb/nceas/metacattest/ReadOnlyCheckerTest.java
1
/**
2
 *  '$RCSfile$'
3
 *  Copyright: 2004 Regents of the University of California and the
4
 *             National Center for Ecological Analysis and Synthesis
5
 *
6
 *   '$Author: daigle $'
7
 *     '$Date: 2009-08-24 14:42:25 -0700 (Mon, 24 Aug 2009) $'
8
 * '$Revision: 5035 $'
9
 *
10
 * This program is free software; you can redistribute it and/or modify
11
 * it under the terms of the GNU General Public License as published by
12
 * the Free Software Foundation; either version 2 of the License, or
13
 * (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
 */
24
package edu.ucsb.nceas.metacattest;
25

  
26
import edu.ucsb.nceas.MCTestCase;
27
import edu.ucsb.nceas.metacat.ReadOnlyChecker;
28

  
29

  
30

  
31
/**
32
 * @author tao
33
 *
34
 * Test class for the Version class.
35
 */
36
public class ReadOnlyCheckerTest extends MCTestCase
37
{
38
    /*
39
     * @see TestCase#setUp()
40
     */
41
    protected void setUp() throws Exception {
42
        super.setUp();
43
    }
44
    
45
    /**
46
     * Test the method of isReadOnly
47
     */
48
    public void testIsReadOnly() {
49
           ReadOnlyChecker checker = new ReadOnlyChecker();
50
           assertTrue(!checker.isReadOnly());
51
    }
52

  
53

  
54
}
0 55

  

Also available in: Unified diff