KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > upgrade > systemoptions > TaskListSettingsTest


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.upgrade.systemoptions;
21
22 /**
23  * @author Radek Matous
24  */

25 public class TaskListSettingsTest extends BasicTestForImport {
26     public TaskListSettingsTest(String JavaDoc testName) {
27         super(testName, "org-netbeans-modules-tasklist-docscan-Settings.settings");
28     }
29
30     public void testPreferencesNodePath() throws Exception JavaDoc {
31         assertPreferencesNodePath("/org/netbeans/modules/tasklist/docscan");
32     }
33     
34     public void testPropertyNames() throws Exception JavaDoc {
35         assertPropertyNames(new String JavaDoc[] {"Tag<<<<<<<",
36                 "Tag@todo",
37                 "TagFIXME",
38                 "TagPENDING",
39                 "TagTODO",
40                 "TagXXX",
41                 "skipComments",
42                 "modificationTime",
43                 "usabilityLimit"
44         });
45     }
46     
47     public void testModificationTime() throws Exception JavaDoc {
48         assertPropertyType("modificationTime", "java.lang.Long");
49         assertProperty("modificationTime", "0");
50     }
51     public void testSkipComments() throws Exception JavaDoc {
52         assertPropertyType("skipComments","java.lang.Boolean");
53         assertProperty("skipComments","false");
54     }
55     public void testUsabilityLimit() throws Exception JavaDoc {
56         assertPropertyType("usabilityLimit","java.lang.Integer");
57         assertProperty("usabilityLimit","300");
58     }
59     
60     public void testTaskTagsTypes() throws Exception JavaDoc {
61         assertProperty("Tag<<<<<<<", "1");
62         assertProperty("Tag@todo","3");
63         assertProperty("TagFIXME","3");
64         assertProperty("TagPENDING","3");
65         assertProperty("TagTODO","3");
66         assertProperty("TagXXX","3");
67     }
68 }
69
Popular Tags