KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2   (c) Copyright 2003, 2004, 2005 Hewlett-Packard Development Company, LP
3   [See end of file]
4   $Id: TestVocabDB.java,v 1.5 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     @author kers
14 */

15 public class TestVocabDB extends VocabTestBase
16     {
17     public TestVocabDB(String JavaDoc name)
18         { super(name); }
19
20     public static TestSuite suite()
21         { return new TestSuite( TestVocabDB.class ); }
22
23     public void testXX()
24         {
25         String JavaDoc ns = "http://jena.hpl.hp.com/2003/04/DB#";
26     /* */
27         assertResource( ns + "SystemGraph", DB.systemGraphName );
28         assertProperty( ns + "EngineType", DB.engineType );
29         assertProperty( ns + "DriverVersion", DB.driverVersion );
30         assertProperty( ns + "FormatDate", DB.formatDate );
31         assertProperty( ns + "Graph", DB.graph );
32         // assertProperty( ns + "MaxLiteral", DB.maxLiteral );
33
/* */
34         assertProperty( ns + "GraphName", DB.graphName );
35         assertProperty( ns + "GraphType", DB.graphType );
36         assertProperty( ns + "GraphLSet", DB.graphLSet );
37         assertProperty( ns + "GraphPrefix", DB.graphPrefix );
38         assertProperty( ns + "GraphId", DB.graphId );
39         assertProperty( ns + "GraphDBSchema", DB.graphDBSchema );
40         assertProperty( ns + "StmtTable", DB.stmtTable );
41         assertProperty( ns + "ReifTable", DB.reifTable );
42     /* */
43         assertProperty( ns + "PrefixValue", DB.prefixValue );
44         assertProperty( ns + "PrefixURI", DB.prefixURI );
45     /* */
46         assertProperty( ns + "LSetName", DB.lSetName );
47         assertProperty( ns + "LSetType", DB.lSetType );
48         assertProperty( ns + "LSetPSet", DB.lSetPSet );
49     /* */
50         assertProperty( ns + "PSetName", DB.pSetName );
51         assertProperty( ns + "PSetType", DB.pSetType );
52         assertProperty( ns + "PSetTable", DB.pSetTable );
53     /* */
54         assertResource( ns + "undefined", DB.undefined );
55         }
56     }
57
58
59 /*
60     (c) Copyright 2003, 2004, 2005 Hewlett-Packard Development Company, LP
61     All rights reserved.
62
63     Redistribution and use in source and binary forms, with or without
64     modification, are permitted provided that the following conditions
65     are met:
66
67     1. Redistributions of source code must retain the above copyright
68        notice, this list of conditions and the following disclaimer.
69
70     2. Redistributions in binary form must reproduce the above copyright
71        notice, this list of conditions and the following disclaimer in the
72        documentation and/or other materials provided with the distribution.
73
74     3. The name of the author may not be used to endorse or promote products
75        derived from this software without specific prior written permission.
76
77     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
78     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
79     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
80     IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
81     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
82     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
83     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
84     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
85     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
86     THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
87 */

88
Popular Tags