001: /*
002: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
003: [See end of file]
004: $Id: TestVocabVCARD.java,v 1.7 2008/01/02 12:08:10 andy_seaborne Exp $
005: */
006:
007: package com.hp.hpl.jena.vocabulary.test;
008:
009: import com.hp.hpl.jena.vocabulary.*;
010: import junit.framework.*;
011:
012: /**
013: Test that the VCARD identifiers are what they're supposed to be.
014: TODO ensure that there are no untested identifiers.
015: @author kers
016: */
017: public class TestVocabVCARD extends VocabTestBase {
018: public TestVocabVCARD(String name) {
019: super (name);
020: }
021:
022: public static TestSuite suite() {
023: return new TestSuite(TestVocabVCARD.class);
024: }
025:
026: public void testVCARD() {
027: String ns = "http://www.w3.org/2001/vcard-rdf/3.0#";
028: assertEquals(ns, VCARD.getURI());
029: assertResource(ns + "ORGPROPERTIES", VCARD.ORGPROPERTIES);
030: assertResource(ns + "ADRTYPES", VCARD.ADRTYPES);
031: assertResource(ns + "NPROPERTIES", VCARD.NPROPERTIES);
032: assertResource(ns + "EMAILTYPES", VCARD.EMAILTYPES);
033: assertResource(ns + "TELTYPES", VCARD.TELTYPES);
034: assertResource(ns + "ADRPROPERTIES", VCARD.ADRPROPERTIES);
035: assertResource(ns + "TZTYPES", VCARD.TZTYPES);
036: assertProperty(ns + "Street", VCARD.Street);
037: assertProperty(ns + "AGENT", VCARD.AGENT);
038: assertProperty(ns + "SOURCE", VCARD.SOURCE);
039: assertProperty(ns + "LOGO", VCARD.LOGO);
040: assertProperty(ns + "BDAY", VCARD.BDAY);
041: assertProperty(ns + "REV", VCARD.REV);
042: assertProperty(ns + "SORT-STRING", VCARD.SORT_STRING);
043: assertProperty(ns + "Orgname", VCARD.Orgname);
044: assertProperty(ns + "CATEGORIES", VCARD.CATEGORIES);
045: assertProperty(ns + "N", VCARD.N);
046: assertProperty(ns + "Pcode", VCARD.Pcode);
047: assertProperty(ns + "Prefix", VCARD.Prefix);
048: assertProperty(ns + "PHOTO", VCARD.PHOTO);
049: assertProperty(ns + "FN", VCARD.FN);
050: assertProperty(ns + "ORG", VCARD.ORG);
051: assertProperty(ns + "Suffix", VCARD.Suffix);
052: assertProperty(ns + "CLASS", VCARD.CLASS);
053: assertProperty(ns + "ADR", VCARD.ADR);
054: assertProperty(ns + "Region", VCARD.Region);
055: assertProperty(ns + "GEO", VCARD.GEO);
056: assertProperty(ns + "Extadd", VCARD.Extadd);
057: assertProperty(ns + "GROUP", VCARD.GROUP);
058: assertProperty(ns + "EMAIL", VCARD.EMAIL);
059: assertProperty(ns + "UID", VCARD.UID);
060: assertProperty(ns + "Family", VCARD.Family);
061: assertProperty(ns + "TZ", VCARD.TZ);
062: assertProperty(ns + "NAME", VCARD.NAME);
063: assertProperty(ns + "Orgunit", VCARD.Orgunit);
064: assertProperty(ns + "Country", VCARD.Country);
065: assertProperty(ns + "SOUND", VCARD.SOUND);
066: assertProperty(ns + "TITLE", VCARD.TITLE);
067: assertProperty(ns + "NOTE", VCARD.NOTE);
068: assertProperty(ns + "MAILER", VCARD.MAILER);
069: assertProperty(ns + "Other", VCARD.Other);
070: assertProperty(ns + "Locality", VCARD.Locality);
071: assertProperty(ns + "Pobox", VCARD.Pobox);
072: assertProperty(ns + "KEY", VCARD.KEY);
073: assertProperty(ns + "PRODID", VCARD.PRODID);
074: assertProperty(ns + "Given", VCARD.Given);
075: assertProperty(ns + "LABEL", VCARD.LABEL);
076: assertProperty(ns + "TEL", VCARD.TEL);
077: assertProperty(ns + "NICKNAME", VCARD.NICKNAME);
078: assertProperty(ns + "ROLE", VCARD.ROLE);
079: }
080: }
081: /*
082: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
083: All rights reserved.
084:
085: Redistribution and use in source and binary forms, with or without
086: modification, are permitted provided that the following conditions
087: are met:
088:
089: 1. Redistributions of source code must retain the above copyright
090: notice, this list of conditions and the following disclaimer.
091:
092: 2. Redistributions in binary form must reproduce the above copyright
093: notice, this list of conditions and the following disclaimer in the
094: documentation and/or other materials provided with the distribution.
095:
096: 3. The name of the author may not be used to endorse or promote products
097: derived from this software without specific prior written permission.
098:
099: 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: */
|