KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > vocabulary > test > TestVocabVCARD


1 /*
2   (c) Copyright 2003, 2004, 2005 Hewlett-Packard Development Company, LP
3   [See end of file]
4   $Id: TestVocabVCARD.java,v 1.4 2005/02/21 12:22:20 andy_seaborne Exp $
5 */

6
7 package com.hp.hpl.jena.vocabulary.test;
8
9 import com.hp.hpl.jena.vocabulary.*;
10 import junit.framework.*;
11
12 /**
13     Test that the VCARD identifiers are what they're supposed to be.
14     TODO ensure that there are no untested identifiers.
15     @author kers
16 */

17 public class TestVocabVCARD extends VocabTestBase
18     {
19     public TestVocabVCARD( String JavaDoc name )
20         { super( name ); }
21
22     public static TestSuite suite()
23         { return new TestSuite( TestVocabVCARD.class ); }
24         
25     public void testVCARD()
26         {
27         String JavaDoc ns = "http://www.w3.org/2001/vcard-rdf/3.0#";
28         assertEquals( ns, VCARD.getURI() );
29         assertResource( ns + "ORGPROPERTIES", VCARD.ORGPROPERTIES );
30         assertResource( ns + "ADRTYPES", VCARD.ADRTYPES );
31         assertResource( ns + "NPROPERTIES", VCARD.NPROPERTIES );
32         assertResource( ns + "EMAILTYPES", VCARD.EMAILTYPES );
33         assertResource( ns + "TELTYPES", VCARD.TELTYPES );
34         assertResource( ns + "ADRPROPERTIES", VCARD.ADRPROPERTIES );
35         assertResource( ns + "TZTYPES", VCARD.TZTYPES );
36         assertProperty( ns + "Street", VCARD.Street );
37         assertProperty( ns + "AGENT", VCARD.AGENT );
38         assertProperty( ns + "SOURCE", VCARD.SOURCE );
39         assertProperty( ns + "LOGO", VCARD.LOGO );
40         assertProperty( ns + "BDAY", VCARD.BDAY );
41         assertProperty( ns + "REV", VCARD.REV );
42         assertProperty( ns + "SORT-STRING", VCARD.SORT_STRING );
43         assertProperty( ns + "Orgname", VCARD.Orgname );
44         assertProperty( ns + "CATEGORIES", VCARD.CATEGORIES );
45         assertProperty( ns + "N", VCARD.N );
46         assertProperty( ns + "Pcode", VCARD.Pcode );
47         assertProperty( ns + "Prefix", VCARD.Prefix );
48         assertProperty( ns + "PHOTO", VCARD.PHOTO );
49         assertProperty( ns + "FN", VCARD.FN );
50         assertProperty( ns + "ORG", VCARD.ORG );
51         assertProperty( ns + "Suffix", VCARD.Suffix );
52         assertProperty( ns + "CLASS", VCARD.CLASS );
53         assertProperty( ns + "ADR", VCARD.ADR );
54         assertProperty( ns + "Region", VCARD.Region );
55         assertProperty( ns + "GEO", VCARD.GEO );
56         assertProperty( ns + "Extadd", VCARD.Extadd );
57         assertProperty( ns + "GROUP", VCARD.GROUP );
58         assertProperty( ns + "EMAIL", VCARD.EMAIL );
59         assertProperty( ns + "UID", VCARD.UID );
60         assertProperty( ns + "Family", VCARD.Family );
61         assertProperty( ns + "TZ", VCARD.TZ );
62         assertProperty( ns + "NAME", VCARD.NAME );
63         assertProperty( ns + "Orgunit", VCARD.Orgunit );
64         assertProperty( ns + "Country", VCARD.Country );
65         assertProperty( ns + "SOUND", VCARD.SOUND );
66         assertProperty( ns + "TITLE", VCARD.TITLE );
67         assertProperty( ns + "NOTE", VCARD.NOTE );
68         assertProperty( ns + "MAILER", VCARD.MAILER );
69         assertProperty( ns + "Other", VCARD.Other );
70         assertProperty( ns + "Locality", VCARD.Locality );
71         assertProperty( ns + "Pobox", VCARD.Pobox );
72         assertProperty( ns + "KEY", VCARD.KEY );
73         assertProperty( ns + "PRODID", VCARD.PRODID );
74         assertProperty( ns + "Given", VCARD.Given );
75         assertProperty( ns + "LABEL", VCARD.LABEL );
76         assertProperty( ns + "TEL", VCARD.TEL );
77         assertProperty( ns + "NICKNAME", VCARD.NICKNAME );
78         assertProperty( ns + "ROLE", VCARD.ROLE );
79         }
80     }
81 /*
82     (c) Copyright 2003, 2004, 2005 Hewlett-Packard Development Company, LP
83     All rights reserved.
84
85     Redistribution and use in source and binary forms, with or without
86     modification, are permitted provided that the following conditions
87     are met:
88
89     1. Redistributions of source code must retain the above copyright
90        notice, this list of conditions and the following disclaimer.
91
92     2. Redistributions in binary form must reproduce the above copyright
93        notice, this list of conditions and the following disclaimer in the
94        documentation and/or other materials provided with the distribution.
95
96     3. The name of the author may not be used to endorse or promote products
97        derived from this software without specific prior written permission.
98
99     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
100     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
101     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
102     IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
103     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
104     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
105     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
106     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
107     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
108     THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
109 */

110
Popular Tags