1   /*
2    wsmo4j - a WSMO API and Reference Implementation
3   
4    Copyright (c) 2004 -2005, OntoText Lab. / SIRMA
5                              University of Innsbruck, Austria
6   
7    This library is free software; you can redistribute it and/or modify it under
8    the terms of the GNU Lesser General Public License as published by the Free
9    Software Foundation; either version 2.1 of the License, or (at your option)
10   any later version.
11   This library is distributed in the hope that it will be useful, but WITHOUT
12   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14   details.
15   You should have received a copy of the GNU Lesser General Public License along
16   with this library; if not, write to the Free Software Foundation, Inc.,
17   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18   */
19  package test.wsmo4j;
20  
21  /**
22   * <p>Title: WSMO4J</p>
23   * <p>Description: WSMO API and a Reference Implementation</p>
24   * <p>Copyright:  Copyright (c) 2004</p>
25   * <p>Company: OntoText Lab. / SIRMA </p>
26   * @author not attributable
27   * @version 1.0
28   *
29   */
30  import junit.framework.*;
31  import test.wsmo4j.common.*;
32  import test.wsmo4j.factory.*;
33  import test.wsmo4j.locator.*;
34  import test.wsmo4j.logicalexpression.*;
35  import test.wsmo4j.logicalexpression.io.*;
36  import test.wsmo4j.mediator.*;
37  import test.wsmo4j.ontology.*;
38  import test.wsmo4j.parser.owl.*;
39  import test.wsmo4j.parser.rdf.RDFParserTest;
40  import test.wsmo4j.parser.wsml.*;
41  import test.wsmo4j.parser.xml.*;
42  import test.wsmo4j.serializer.rdf.RDFSerializerTest;
43  import test.wsmo4j.serializer.wsml.WSMLSerializeTest;
44  import test.wsmo4j.validator.*;
45  
46  
47  public class Wsmo4jTests extends TestSuite {
48  
49      public Wsmo4jTests() {
50          super();
51          //common
52          addTestSuite(IDReferenceTest.class);
53          addTestSuite(IRITest.class);
54          addTestSuite(NamespaceTest.class);
55          addTestSuite(NFPTest.class);
56          addTestSuite(TopEntityTest.class);
57  
58          //factory
59          addTestSuite(DataFactoryTest.class);
60          addTestSuite(WSMOFactoryTest.class);
61          addTestSuite(DataFactoryDateTimeTest.class);
62  
63          //locator
64          addTestSuite(LocatorTest.class);
65          addTestSuite(LocatorImplTest.class);
66  
67          //logicalexpression
68          addTestSuite(BinaryImplTest.class);
69          addTestSuite(EqualityTest.class);
70          addTestSuite(LogicalExpressionFactoryTest.class);
71          addTestSuite(QuantifiedImplTest.class);
72          addTestSuite(UnaryImplTest.class);
73          addTestSuite(ParsingTest.class);
74          addTestSuite(SerializingTest.class);
75  //        addTestSuite(XMLParsingTest.class);
76  
77          //mediator
78          addTestSuite(MediatorTest.class);
79          
80          //ontology
81          addTestSuite(OntologyTest.class);
82          addTestSuite(ConceptTest.class);
83          addTestSuite(RelationTest.class);
84          
85          //parser
86          addTestSuite(OWLParserTest.class);
87          addTestSuite(open.wsmo4j.parser.owl.OWLParserTest.class);
88          addTestSuite(WSMLParseTest.class);
89          addTestSuite(XmlParserTest.class);
90          addTestSuite(TestCase_XMLWSML.class);
91          addTestSuite(RDFParserTest.class);
92  
93          //serializer
94          addTestSuite(WSMLSerializeTest.class);
95          addTestSuite(RDFSerializerTest.class);
96  
97          //validation    
98          addTestSuite(AnonIDRef.class);
99          addTestSuite(ValidateImportsTests.class);
100         addTestSuite(ValidateLogicalExpressionTests.class);
101         addTestSuite(ValidatorFileTests.class);
102         addTestSuite(ValidatorConceptualTests.class);
103         addTestSuite(ValidatorLogExprTests.class);
104         addTestSuite(VariantsTest.class);
105         addTestSuite(ValidatorWSandGoalTests.class);
106     }
107 
108     public static Test suite() {
109         return new Wsmo4jTests();
110     }
111 }
112 
113 /*
114  * $Log$
115  * Revision 1.23  2006/11/30 13:53:53  nathaliest
116  * added new testsuite
117  *
118  * Revision 1.22  2006/11/27 11:38:45  nathaliest
119  * added some tests
120  *
121  * Revision 1.21  2006/05/15 08:08:14  holgerlausen
122  * added serializer tests
123  *
124  * Revision 1.20  2006/04/24 08:04:57  holgerlausen
125  * improved error handling in case of topentities without identifier
126  * moved thomas unit test to "open" package, since it does not break expected behavior, but just document some derivations from the spec
127  *
128  * Revision 1.19  2006/03/28 13:57:36  nathaliest
129  * added validator anonId tests to wsmo4jTests
130  *
131  * Revision 1.18  2006/02/08 15:21:35  holgerlausen
132  * adde locator test
133  *
134  * Revision 1.17  2005/12/19 11:23:28  nathaliest
135  * restructured validator tests
136  *
137  * Revision 1.16  2005/11/29 15:43:32  holgerlausen
138  * added missing tests
139  *
140  * Revision 1.15  2005/11/21 13:16:01  holgerlausen
141  * added DL Validator tests.
142  *
143  * Revision 1.14  2005/09/20 13:21:31  holgerlausen
144  * refactored logical expression API to have simple molecules and compound molecules (RFE 1290043)
145  *
146  * Revision 1.13  2005/09/14 11:24:19  marin_dimitrov
147  * no message
148  *
149  * Revision 1.12  2005/09/14 11:13:46  marin_dimitrov
150  * removed XML test case for LE
151  *
152  * Revision 1.10  2005/09/12 14:34:18  vassil_momtchev
153  * tests updated
154  *
155  * Revision 1.9  2005/09/09 17:11:45  nathaliest
156  * changed validator test structure and changed wsml test files
157  *
158  * Revision 1.8  2005/09/09 06:35:47  holgerlausen
159  * all open unit tests are moved to clarification:* wokring unit tests under test.*, Wsmo4jTestSuite contains now all tests that are expect to work
160  *
161  * Revision 1.7  2005/09/07 18:45:00  holgerlausen
162  * updated unit tests
163  *
164  * Revision 1.6  2005/09/02 14:10:04  holgerlausen
165  * unit tests are all greenisch now. Moved the ones that are pending to different package. Will check in more detail next week
166  *
167  * Revision 1.5  2005/07/29 10:44:36  holgerlausen
168  * wsmo4j test cases run again, however due to open issues some of them fail
169  *
170  * Revision 1.4  2005/01/12 16:19:15  alex_simov
171  * checkstyle formatting
172  *
173  * Revision 1.3  2005/01/12 14:13:37  alex_simov
174  * static TestSuite constructing method added
175  *
176  * Revision 1.2  2005/01/11 14:51:55  alex_simov
177  * The class now extends TestSuite
178  *
179  * Revision 1.1  2005/01/11 14:11:54  alex_simov
180  * A TestSuit for the current collection of tests
181  *
182  */